mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
infra: update the compiler options
- applying robust build options - aligning options between gcc/clang compilers.
This commit is contained in:
parent
477714778c
commit
4370fc7fb3
1 changed files with 4 additions and 3 deletions
|
@ -19,8 +19,9 @@ if (cc.get_id() == 'clang-cl')
|
||||||
endif
|
endif
|
||||||
if get_option('b_sanitize') == 'none'
|
if get_option('b_sanitize') == 'none'
|
||||||
override_options += ['cpp_eh=none','cpp_rtti=false']
|
override_options += ['cpp_eh=none','cpp_rtti=false']
|
||||||
compiler_flags += ['/clang:-fno-math-errno',
|
compiler_flags += ['/clang:-fno-math-errno', '/clang:-Woverloaded-virtual',
|
||||||
'/clang:-Woverloaded-virtual', '/clang:-Wno-unused-value', '-Wno-deprecated-declarations']
|
'/clang:-fno-stack-protector', '/clang:-fno-unwind-tables' ,
|
||||||
|
'/clang:-fno-asynchronous-unwind-tables']
|
||||||
endif
|
endif
|
||||||
elif (cc.get_id() != 'msvc')
|
elif (cc.get_id() != 'msvc')
|
||||||
if simd_type == 'avx'
|
if simd_type == 'avx'
|
||||||
|
@ -32,7 +33,7 @@ elif (cc.get_id() != 'msvc')
|
||||||
if get_option('b_sanitize') == 'none'
|
if get_option('b_sanitize') == 'none'
|
||||||
compiler_flags += ['-fno-exceptions', '-fno-rtti', '-fno-stack-protector', '-fno-math-errno',
|
compiler_flags += ['-fno-exceptions', '-fno-rtti', '-fno-stack-protector', '-fno-math-errno',
|
||||||
'-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
|
'-fno-unwind-tables' , '-fno-asynchronous-unwind-tables',
|
||||||
'-Woverloaded-virtual', '-Wno-unused-parameter']
|
'-Woverloaded-virtual']
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue