Skip to content

Commit

Permalink
[meson] Add needed compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ebraminio committed Mar 11, 2020
1 parent c494d7a commit d8a8cc9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ if cpp.get_id() == 'msvc'
# noseh_link_args = ['/SAFESEH:NO']
endif

add_global_arguments(cpp.get_supported_arguments(['-fno-rtti', '-fno-exceptions', '-fno-threadsafe-statics']), language : 'cpp')

# Let's see if they are really needed anymore
# if cpp.get_id() == 'gcc' and host_machine.system() == 'windows'
# add_global_arguments('-fvisibility-inlines-hidden', language : 'cpp')
#endif
#if host_machine.cpu_family() == 'arm' or host_machine.cpu_family() == 'aarch64'
# add_global_arguments('-mstructure-size-boundary=8', language : 'cpp')
#endif

python3 = import('python').find_installation('python3')

check_headers = [
Expand Down

0 comments on commit d8a8cc9

Please sign in to comment.