Skip to content

Commit

Permalink
[openmp] Silence warning when building the x64 Windows LLVM release p…
Browse files Browse the repository at this point in the history
…ackage

This fixes:
```
MASM : warning A4018:invalid command-line option : -U_GLIBCXX_ASSERTIONS
```
  • Loading branch information
aganea committed Jul 6, 2024
1 parent cf1ded3 commit be26e54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openmp/runtime/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ endif()

# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to
# avoid an unwanted dependency on libstdc++.so.
add_definitions(-U_GLIBCXX_ASSERTIONS)
if(NOT WIN32)
add_definitions(-U_GLIBCXX_ASSERTIONS)
endif()

# Add the OpenMP library
libomp_get_ldflags(LIBOMP_CONFIGURED_LDFLAGS)
Expand Down

0 comments on commit be26e54

Please sign in to comment.