Lines Matching +full:gas +full:- +full:preprocessor
1 # Copyright © 2018-2022, VideoLAN and dav1d authors
30 'b_ndebug=if-release'],
75 error('asm causes false positive with memory sanitizer. Use \'-Denable_asm=false\'.')
79 (get_option('trim_dsp') == 'if-release' and get_option('buildtype') == 'release'))
97 test_args += '-D_GNU_SOURCE'
98 add_project_arguments('-D_GNU_SOURCE', language: 'c')
116 optional_link_arguments += '-Wl,--dynamicbase,--nxcompat,--tsaware,--high-entropy-va'
122 … optional_link_arguments += '-Wl,--dynamicbase,--nxcompat,--tsaware,--large-address-aware'
141 rc_data.set('COPYRIGHT_YEARS', '2018-2024')
166 …if cc.has_function('fseeko', prefix : '#include <stdio.h>', args : test_args + ['-U_FILE_OFFSET_BI…
168 add_project_arguments('-U_FILE_OFFSET_BITS', language: 'c')
198 name : 'GCC-style atomics', args : test_args)
208 # enable atomics + bulk-memory features
222 test_args += '-DHAVE_PTHREAD_NP_H'
269 if cc.has_argument('-fvisibility=hidden')
270 add_project_arguments('-fvisibility=hidden', language: 'c')
272 warning('Compiler does not support -fvisibility=hidden, all symbols will be public!')
280 '-Wundef',
281 '-Werror=vla',
282 '-Wno-maybe-uninitialized',
283 '-Wno-missing-field-initializers',
284 '-Wno-unused-parameter',
285 '-Wstrict-prototypes',
286 '-Werror=missing-prototypes',
287 '-Wshorten-64-to-32',
291 '-msse2',
292 '-mfpmath=sse',
297 '-wd4028', # parameter different from declaration
298 '-wd4090', # broken with arrays of pointers
299 '-wd4996' # use of POSIX functions
304 optional_arguments += '-fomit-frame-pointer'
305 optional_arguments += '-ffast-math'
310 # Workaround for Xcode 11 -fstack-check bug, see #301
311 optional_arguments += '-fno-stack-check'
315 optional_arguments += '-fno-align-functions'
324 if not cc.has_argument('-fsanitize=fuzzer')
325 error('fuzzing_engine libfuzzer requires "-fsanitize=fuzzer"')
327 fuzzer_args = ['-fsanitize=fuzzer-no-link', '-fsanitize=fuzzer']
359 # '-fPIE' by default. The chosen way only adds '-fPIE' to the C compiler
360 # with integrated preprocessor. It is not added to the standalone
361 # preprocessor or the preprocessing stage of '.S' files. So we have to
376 have_as_arch = cc.compiles('''__asm__ (".arch armv8-a");''')
380 as_arch_level = 'armv8-a'
382 # want to detect up to armv8.2-a here (binutils requires that
388 foreach arch : ['armv8.2-a', 'armv8.4-a', 'armv8.6-a']
394 # (https://github.com/llvm/llvm-project/issues/32220)
396 # had an extra "+<feature>" included - but it was activated on the
446 # Convert SSE asm into (128-bit) AVX when compiler flags are set to use AVX instructions
461 # when additional flags like '-fprofile-instr-generate' are passed via CFLAGS
480 nasm_r = run_command(nasm, '-v', check: true)
512 '-f', nasm_format,
513 '-I', '@0@/src/'.format(dav1d_src_root),
514 '-I', '@0@/'.format(meson.current_build_dir()),
515 '-MQ', '@OUTPUT@', '-MF', '@DEPFILE@',
518 '-o', '@OUTPUT@'
527 (cc.get_id() != 'clang-cl' or meson.version().version_compare('<0.58.0')))
528 gaspp = find_program('gas-preprocessor.pl')
533 '-as-type', 'armasm',
534 '-arch', host_machine.cpu_family(),
535 '--',
537 '-nologo',
538 '-I@0@'.format(dav1d_src_root),
539 '-I@0@/'.format(meson.current_build_dir()),
541 '-c',
542 '-o', '@OUTPUT@'
552 if not cc.compiles(as_option_code, name : 'RISC-V Vector')
553 …option arch\' asm directive. Update to binutils>=2.38 or clang>=17 or use \'-Denable_asm=false\'.')