[Openmp-commits] [PATCH] D143200: [OpenMP][libomp] Fix CMake version symbol testing

Jonathan Peyton via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 3 08:52:57 PST 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc32022ad260a: [OpenMP][libomp] Fix CMake version symbol testing (authored by jlpeyton).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143200/new/

https://reviews.llvm.org/D143200

Files:
  openmp/runtime/cmake/config-ix.cmake
  openmp/runtime/src/exports_test_so.txt


Index: openmp/runtime/src/exports_test_so.txt
===================================================================
--- openmp/runtime/src/exports_test_so.txt
+++ openmp/runtime/src/exports_test_so.txt
@@ -19,10 +19,6 @@
 
         *;         # All symbols as exported for testing.
 
-    local: # Non-exported symbols.
-
-        *;         # All other symbols are not exported.
-
 }; # VERSION
 
 # sets up GCC OMP_ version dependency chain
Index: openmp/runtime/cmake/config-ix.cmake
===================================================================
--- openmp/runtime/cmake/config-ix.cmake
+++ openmp/runtime/cmake/config-ix.cmake
@@ -246,7 +246,11 @@
 
 # Checking features
 # Check if version symbol assembler directives are supported
-libomp_check_version_symbols(LIBOMP_HAVE_VERSION_SYMBOLS)
+if (LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
+  libomp_check_version_symbols(LIBOMP_HAVE_VERSION_SYMBOLS)
+else()
+  set(LIBOMP_HAVE_VERSION_SYMBOLS FALSE)
+endif()
 
 # Check if quad precision types are available
 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143200.494664.patch
Type: text/x-patch
Size: 1047 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230203/bb0e2cdf/attachment.bin>


More information about the Openmp-commits mailing list