Merge pull request #5128 from Ericson2314/sanity-check-with-flags
Sanity check with external argspull/5196/head
commit
75219989ca
11 changed files with 120 additions and 40 deletions
@ -0,0 +1,17 @@ |
||||
## Sanity checking compilers with user flags |
||||
|
||||
Sanity checks previously only used user-specified flags for cross compilers, but |
||||
now do in all cases. |
||||
|
||||
All compilers meson might decide to use for the build are "sanity checked" |
||||
before other tests are run. This usually involves building simple executable and |
||||
trying to run it. Previously user flags (compilation and/or linking flags) were |
||||
used for sanity checking cross compilers, but not native compilers. This is |
||||
because such flags might be essential for a cross binary to succeed, but usually |
||||
aren't for a native compiler. |
||||
|
||||
In recent releases, there has been an effort to minimize the special-casing of |
||||
cross or native builds so as to make building more predictable in less-tested |
||||
cases. Since this the user flags are necessary for cross, but not harmful for |
||||
native, it makes more sense to use them in all sanity checks than use them in no |
||||
sanity checks, so this is what we now do. |
@ -1,4 +1,4 @@ |
||||
# This file is not read by meson itself, but by the test framework. |
||||
# It is not possible to pass arguments to meson from a file. |
||||
['-Dc_args=-march=native', '-Dc_args=-funroll-loops', |
||||
'-Dc_link_args=-random_linker_option'] |
||||
'-Dc_link_args=-Dtest_harmless_but_useless_link_arg'] |
||||
|
Loading…
Reference in new issue