Skip to content

[UTIL] Make sure Windows.h doesn't define min#1258

Closed
kbenzie wants to merge 1 commit intooneapi-src:mainfrom
kbenzie:benie/fix-l0-windows-build
Closed

[UTIL] Make sure Windows.h doesn't define min#1258
kbenzie wants to merge 1 commit intooneapi-src:mainfrom
kbenzie:benie/fix-l0-windows-build

Conversation

@kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Jan 17, 2024

Define NOMINMAX before including Windows.h to fix the build in intel/llvm#12375.

Define `NOMINMAX` before including Windows.h to fix the building in
intel/llvm#12375.
@pbalcer
Copy link
Contributor

pbalcer commented Jan 17, 2024

All targets should already have this problem fixed:
https://github.com/oneapi-src/unified-runtime/blob/main/cmake/helpers.cmake#L87

@kbenzie
Copy link
Contributor Author

kbenzie commented Jan 17, 2024

All targets should already have this problem fixed:
https://github.com/oneapi-src/unified-runtime/blob/main/cmake/helpers.cmake#L87

This PI plugins aren't inheriting this build option. Saying that, might be possible to fix it in that CMake instead of here.

@kbenzie
Copy link
Contributor Author

kbenzie commented Jan 18, 2024

Superceeded by #1260, closing.

@kbenzie kbenzie closed this Jan 18, 2024
@kbenzie kbenzie deleted the benie/fix-l0-windows-build branch June 11, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants