compiler.h changes for Windows MSVC support#6623
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6623
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 0677a48 with merge base 8a4e492 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Pull Request resolved: #6623 Differential Revision: D65328573
6b11ec8 to
ea21c7a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
ea21c7a to
19aa228
Compare
Summary: Pull Request resolved: #6623 Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
19aa228 to
72fbf8b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
72fbf8b to
80b0f91
Compare
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
80b0f91 to
0f120f4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Differential Revision: D65328573
0f120f4 to
953b1bc
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
953b1bc to
689673c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
689673c to
be2de10
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
be2de10 to
e42c91a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
| if (a.isInt() && b.isInt()) { | ||
| const int64_t quot = a.toInt() / b.toInt(); | ||
| if (std::signbit(a.toInt()) == std::signbit(b.toInt())) { | ||
| if ((a.toInt() < 0) == (b.toInt() < 0)) { |
There was a problem hiding this comment.
This feels unrelated to PR in question, is it?
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
e42c91a to
641c52e
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
641c52e to
bb5008b
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
bb5008b to
86fb5fb
Compare
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
86fb5fb to
0677a48
Compare
|
This pull request was exported from Phabricator. Differential Revision: D65328573 |
Summary: Adding some MSVC (Windows) specific macros to compiler.h to make sure we can build with MSVC. Reviewed By: dbort Differential Revision: D65328573
| // There currently doesn't seem to be a great way to do this in Windows and | ||
| // given that weak linkage is not really critical on Windows, we'll just leave | ||
| // it as a stub. | ||
| #define ET_WEAK |
There was a problem hiding this comment.
Hi, we are adding Windows x64 Build Support #6979. I use .\install_requirements.bat --pybind xnnpack to build on windows. And we encountered duplicate symbol problem.

I investigated and found that windows didn't support weak symbol. Do you have some insights how to resolve this?
Differential Revision: D65328573