aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ganea <aganea@havenstudios.com>2024-07-05 21:16:04 -0400
committerAlexandre Ganea <aganea@havenstudios.com>2024-07-05 21:16:04 -0400
commitbe26e545424a6e006cd67e4433c88c25b23404ae (patch)
tree6b225dd6b27a1610bbbc9031f9060e6e2bd9765a
parentcf1ded3ac248ad4feeed7b4dd20c60b7e3c40339 (diff)
downloadllvm-be26e545424a6e006cd67e4433c88c25b23404ae.zip
llvm-be26e545424a6e006cd67e4433c88c25b23404ae.tar.gz
llvm-be26e545424a6e006cd67e4433c88c25b23404ae.tar.bz2
[openmp] Silence warning when building the x64 Windows LLVM release package
This fixes: ``` MASM : warning A4018:invalid command-line option : -U_GLIBCXX_ASSERTIONS ```
-rw-r--r--openmp/runtime/src/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 60641e6..f106694 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -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)