From 7cda90c06a4021c085be89e38fe2788aa83cd467 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Fri, 4 Jun 2021 19:51:40 +0100 Subject: [PATCH] cmake: build with -fvisibility-inlines-hidden --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 561da3595..fa2531670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() ################################################################################