diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-03-22 19:53:47 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2019-04-01 14:57:46 -0400 |
commit | a4b2fbc807e2459f50dc43950753737f558e782b (patch) | |
tree | 1ff2e907116bfb31f33704dad862fc24de2ea084 | |
parent | 8c3d24e9dea597f8f0a6b0270ce9f80273a707c2 (diff) | |
download | meson-a4b2fbc807e2459f50dc43950753737f558e782b.zip meson-a4b2fbc807e2459f50dc43950753737f558e782b.tar.gz meson-a4b2fbc807e2459f50dc43950753737f558e782b.tar.bz2 |
Use a real linker arg in 'test cases/common/177 initial c_args'
`-Dtest_harmless_but_useless_link_arg` won't actually do anything
without anything to preprocess, but least it is valid for GCC and MSVC,
and won't be caused by anything else.
-rw-r--r-- | test cases/common/177 initial c_args/meson.build | 2 | ||||
-rw-r--r-- | test cases/common/177 initial c_args/test_args.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test cases/common/177 initial c_args/meson.build b/test cases/common/177 initial c_args/meson.build index 169d2bd..638f8c2 100644 --- a/test cases/common/177 initial c_args/meson.build +++ b/test cases/common/177 initial c_args/meson.build @@ -3,5 +3,5 @@ project('options', 'c') # Test passing c_args and c_link_args options from the command line. assert(get_option('c_args') == ['-funroll-loops'], 'Incorrect value for c_args option.') -assert(get_option('c_link_args') == ['-random_linker_option'], +assert(get_option('c_link_args') == ['-Dtest_harmless_but_useless_link_arg'], 'Incorrect value for c_link_args option.') diff --git a/test cases/common/177 initial c_args/test_args.txt b/test cases/common/177 initial c_args/test_args.txt index 9a6da06..166e481 100644 --- a/test cases/common/177 initial c_args/test_args.txt +++ b/test cases/common/177 initial c_args/test_args.txt @@ -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'] |