[Openmp-commits] [openmp] be26e54 - [openmp] Silence warning when building the x64 Windows LLVM release package

Alexandre Ganea via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 5 19:03:59 PDT 2024


Author: Alexandre Ganea
Date: 2024-07-05T21:16:04-04:00
New Revision: be26e545424a6e006cd67e4433c88c25b23404ae

URL: https://github.com/llvm/llvm-project/commit/be26e545424a6e006cd67e4433c88c25b23404ae
DIFF: https://github.com/llvm/llvm-project/commit/be26e545424a6e006cd67e4433c88c25b23404ae.diff

LOG: [openmp] Silence warning when building the x64 Windows LLVM release package

This fixes:
```
MASM : warning A4018:invalid command-line option : -U_GLIBCXX_ASSERTIONS
```

Added: 
    

Modified: 
    openmp/runtime/src/CMakeLists.txt

Removed: 
    


################################################################################
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)


        


More information about the Openmp-commits mailing list