Skip to content

Commit c32022a

Browse files
committed
[OpenMP][libomp] Fix CMake version symbol testing
Do not check for version symbol support if the necessary linker flag is not supported. Differential Revision: https://reviews.llvm.org/D143200
1 parent 74ce297 commit c32022a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openmp/runtime/cmake/config-ix.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ endif()
246246

247247
# Checking features
248248
# Check if version symbol assembler directives are supported
249-
libomp_check_version_symbols(LIBOMP_HAVE_VERSION_SYMBOLS)
249+
if (LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
250+
libomp_check_version_symbols(LIBOMP_HAVE_VERSION_SYMBOLS)
251+
else()
252+
set(LIBOMP_HAVE_VERSION_SYMBOLS FALSE)
253+
endif()
250254

251255
# Check if quad precision types are available
252256
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")

openmp/runtime/src/exports_test_so.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ VERSION {
1919

2020
*; # All symbols as exported for testing.
2121

22-
local: # Non-exported symbols.
23-
24-
*; # All other symbols are not exported.
25-
2622
}; # VERSION
2723

2824
# sets up GCC OMP_ version dependency chain

0 commit comments

Comments
 (0)