Skip to content

Commit

Permalink
Merge pull request #38 from jbeich/freebsd
Browse files Browse the repository at this point in the history
Disable -mtune=native if not supported
  • Loading branch information
mortie committed Nov 23, 2020
2 parents 912c8bc + 17fea65 commit 3aa6b4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ add_project_arguments(
'-Wundef',
'-Wvla',
'-fopenmp',
'-mtune=native',
],
language: 'c',
)
Expand All @@ -44,6 +43,15 @@ if is_freebsd
add_project_arguments('-D_C11_SOURCE', language: 'c')
endif

test_cflags = [
'-mtune=native',
]
foreach cflag : test_cflags
if cc.has_argument(cflag)
add_project_arguments(cflag, language: 'c')
endif
endforeach

wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols', version: '>=1.14')
xkbcommon = dependency('xkbcommon')
Expand Down

0 comments on commit 3aa6b4b

Please sign in to comment.