Skip to content

Commit be26e54

Browse files
committed
[openmp] Silence warning when building the x64 Windows LLVM release package
This fixes: ``` MASM : warning A4018:invalid command-line option : -U_GLIBCXX_ASSERTIONS ```
1 parent cf1ded3 commit be26e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openmp/runtime/src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ endif()
161161

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

166168
# Add the OpenMP library
167169
libomp_get_ldflags(LIBOMP_CONFIGURED_LDFLAGS)

0 commit comments

Comments
 (0)