-
Notifications
You must be signed in to change notification settings - Fork 649
Fix XNNPACK build on Windows #13259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh/GregoryComer/115/head
Are you sure you want to change the base?
Fix XNNPACK build on Windows #13259
Conversation
@@ -59,7 +59,7 @@ foreach(fbs_file ${_xnnpack_schema__srcs}) | |||
) | |||
endforeach() | |||
|
|||
if(WIN32 AND NOT CMAKE_CROSSCOMPILING) | |||
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") | |
if(WIN32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will actually not work, as WIN32 is set when the target in Windows, not the host. If we're cross compiling (for Android, for example), from a Windows host, we'll still want to use Powershell. Though feel free to correct me if I'm misunderstanding.
Fix a few build-blocking issues on Windows. Enable XNNPACK on the Windows preset. This also gives CI coverage.