@@ -6,7 +6,8 @@ if cpp.has_argument('-march=haswell')
6
6
' x86simdsort-avx2.cpp' ,
7
7
),
8
8
include_directories : [src],
9
- cpp_args : [' -march=haswell' , flags_hide_symbols],
9
+ cpp_args : [' -march=haswell' ],
10
+ gnu_symbol_visibility : ' inlineshidden' ,
10
11
)
11
12
endif
12
13
@@ -16,7 +17,8 @@ if cpp.has_argument('-march=skylake-avx512')
16
17
' x86simdsort-skx.cpp' ,
17
18
),
18
19
include_directories : [src],
19
- cpp_args : [' -march=skylake-avx512' , flags_hide_symbols],
20
+ cpp_args : [' -march=skylake-avx512' ],
21
+ gnu_symbol_visibility : ' inlineshidden' ,
20
22
)
21
23
endif
22
24
@@ -26,7 +28,8 @@ if cpp.has_argument('-march=icelake-client')
26
28
' x86simdsort-icl.cpp' ,
27
29
),
28
30
include_directories : [src],
29
- cpp_args : [' -march=icelake-client' , flags_hide_symbols],
31
+ cpp_args : [' -march=icelake-client' ],
32
+ gnu_symbol_visibility : ' inlineshidden' ,
30
33
)
31
34
endif
32
35
@@ -36,7 +39,8 @@ if cancompilefp16
36
39
' x86simdsort-spr.cpp' ,
37
40
),
38
41
include_directories : [src],
39
- cpp_args : [' -march=sapphirerapids' , flags_hide_symbols],
42
+ cpp_args : [' -march=sapphirerapids' ],
43
+ gnu_symbol_visibility : ' inlineshidden' ,
40
44
)
41
45
endif
42
46
0 commit comments