Skip to content

Commit

Permalink
cmake: build with -fvisibility-inlines-hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Jun 4, 2021
1 parent 2f9be23 commit 7cda90c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ option(Z3_BUILD_LIBZ3_SHARED "Build libz3 as a shared library if true, otherwise
################################################################################
if (NOT MSVC)
z3_add_cxx_flag("-fvisibility=hidden" REQUIRED)
z3_add_cxx_flag("-fvisibility-inlines-hidden" REQUIRED)
endif()

################################################################################
Expand Down

0 comments on commit 7cda90c

Please sign in to comment.