diff options
Diffstat (limited to 'config.tests/no_direct_extern_access/CMakeLists.txt')
-rw-r--r-- | config.tests/no_direct_extern_access/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.tests/no_direct_extern_access/CMakeLists.txt b/config.tests/no_direct_extern_access/CMakeLists.txt index 7c82348751..b4b881f1dc 100644 --- a/config.tests/no_direct_extern_access/CMakeLists.txt +++ b/config.tests/no_direct_extern_access/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.16) project(direct_extern_access LANGUAGES CXX) # this is the test found in https://sourceware.org/bugzilla/show_bug.cgi?id=29087 +# and https://sourceware.org/bugzilla/show_bug.cgi?id=29377 add_library(no_extern_access_lib SHARED lib.cpp) -add_executable(no_extern_access_main main.cpp) +add_executable(no_extern_access_main other.cpp main.cpp) target_compile_options(no_extern_access_lib PRIVATE "-Werror") target_compile_options(no_extern_access_lib PUBLIC "$<$<CXX_COMPILER_ID:GNU>:-mno-direct-extern-access>") |