From be26e545424a6e006cd67e4433c88c25b23404ae Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Fri, 5 Jul 2024 21:16:04 -0400 Subject: [PATCH] [openmp] Silence warning when building the x64 Windows LLVM release package This fixes: ``` MASM : warning A4018:invalid command-line option : -U_GLIBCXX_ASSERTIONS ``` --- openmp/runtime/src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt index 60641e6f0fe5de..f106694841ce8d 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)