mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
meson.build: move -fvisibility flags into feature tests
Don't want to use these without ensuring the compiler supports them. Signed-off-by: Steven Noonan <steven@valvesoftware.com>
This commit is contained in:
+2
-3
@@ -1,6 +1,3 @@
|
||||
add_global_arguments('-fvisibility=hidden', language: 'cpp')
|
||||
add_global_arguments('-fvisibility-inlines-hidden', language: 'cpp')
|
||||
|
||||
dependencies = []
|
||||
|
||||
c_compiler = meson.get_compiler('c')
|
||||
@@ -21,11 +18,13 @@ incdirs = include_directories('.', '../include', 'common', 'public')
|
||||
|
||||
flags_common = [
|
||||
'-fno-strict-aliasing',
|
||||
'-fvisibility=hidden',
|
||||
]
|
||||
|
||||
flags_cxx = [
|
||||
'-fno-rtti',
|
||||
'-fno-exceptions',
|
||||
'-fvisibility-inlines-hidden',
|
||||
]
|
||||
|
||||
warn_flags_common = [
|
||||
|
||||
Reference in New Issue
Block a user