Pipewireパッケージ(ちょっと変更)
Revisión | 632f532036d3c69ce0aba89a85dbc3a94af7ad0a (tree) |
---|---|
Tiempo | 2023-09-08 00:44:30 |
Autor | Wim Taymans <wtaymans@redh...> |
Commiter | Wim Taymans |
@@ -7,6 +7,13 @@ audioconvert_sources = [ | ||
7 | 7 | simd_cargs = [] |
8 | 8 | simd_dependencies = [] |
9 | 9 | |
10 | +opt_flags = [] | |
11 | +if host_machine.cpu_family() != 'alpha' | |
12 | + opt_flags += '-Ofast' | |
13 | +else | |
14 | + opt_flags += '-O3' | |
15 | +endif | |
16 | + | |
10 | 17 | audioconvert_c = static_library('audioconvert_c', |
11 | 18 | [ 'channelmix-ops-c.c', |
12 | 19 | 'biquad.c', |
@@ -15,7 +22,7 @@ audioconvert_c = static_library('audioconvert_c', | ||
15 | 22 | 'peaks-ops-c.c', |
16 | 23 | 'resample-native-c.c', |
17 | 24 | 'fmt-ops-c.c' ], |
18 | - c_args : ['-Ofast'], | |
25 | + c_args : [ opt_flags ], | |
19 | 26 | dependencies : [ spa_dep ], |
20 | 27 | install : false |
21 | 28 | ) |
@@ -27,7 +34,7 @@ if have_sse | ||
27 | 34 | 'volume-ops-sse.c', |
28 | 35 | 'peaks-ops-sse.c', |
29 | 36 | 'channelmix-ops-sse.c' ], |
30 | - c_args : [sse_args, '-Ofast', '-DHAVE_SSE'], | |
37 | + c_args : [sse_args, opt_flags, '-DHAVE_SSE'], | |
31 | 38 | dependencies : [ spa_dep ], |
32 | 39 | install : false |
33 | 40 | ) |