diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-08-11 19:59:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 19:59:34 +0300 |
commit | f91b463bf4625bfc167b78b52f091f45cddfdff4 (patch) | |
tree | 13747f96c8f68d8b6bb1b4a442de755a6cdb8ae4 /mesonbuild/minit.py | |
parent | f80c11e7ee4f521b1b4e3af56293fdcac15676fe (diff) | |
parent | fb2cdd0fe2797b30e1fd4c118407302402739a3b (diff) | |
download | meson-f91b463bf4625bfc167b78b52f091f45cddfdff4.zip meson-f91b463bf4625bfc167b78b52f091f45cddfdff4.tar.gz meson-f91b463bf4625bfc167b78b52f091f45cddfdff4.tar.bz2 |
Merge pull request #3831 from mesonbuild/symvisibility
Add gnu_symbol_visibility keyword argument
Diffstat (limited to 'mesonbuild/minit.py')
-rw-r--r-- | mesonbuild/minit.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/mesonbuild/minit.py b/mesonbuild/minit.py index 1a83ed2..a66361f 100644 --- a/mesonbuild/minit.py +++ b/mesonbuild/minit.py @@ -72,16 +72,10 @@ lib_c_meson_template = '''project('{project_name}', 'c', # not the executables that use the library. lib_args = ['-DBUILDING_{utoken}'] -# Hiding symbols that are not explicitly marked as exported -# requires a compiler flag on all compilers except VS. -cc = meson.get_compiler('c') -if cc.get_id() != 'msvc' - lib_args += ['-fvisibility=hidden'] -endif - shlib = shared_library('{lib_name}', '{source_file}', install : true, c_args : lib_args, + gnu_symbol_visibility : 'hidden', ) test_exe = executable('{test_exe_name}', '{test_source_file}', @@ -226,16 +220,10 @@ lib_cpp_meson_template = '''project('{project_name}', 'cpp', # not the executables that use the library. lib_args = ['-DBUILDING_{utoken}'] -# Hiding symbols that are not explicitly marked as exported -# requires a compiler flag on all compilers except VS. -cpp = meson.get_compiler('cpp') -if cpp.get_id() != 'msvc' - lib_args += ['-fvisibility=hidden'] -endif - shlib = shared_library('{lib_name}', '{source_file}', install : true, cpp_args : lib_args, + gnu_symbol_visibility : 'hidden', ) test_exe = executable('{test_exe_name}', '{test_source_file}', |