aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-04-30 13:53:40 -0400
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-05-01 12:09:45 +0000
commit24f1b96dde9a0faf961a421f63212d5245de12c0 (patch)
treee993a0b465610fd56752e3442a0dc53508c80dc2 /test cases
parent4f4cdee6876148b14a430e5886fec45299bb0573 (diff)
downloadmeson-24f1b96dde9a0faf961a421f63212d5245de12c0.zip
meson-24f1b96dde9a0faf961a421f63212d5245de12c0.tar.gz
meson-24f1b96dde9a0faf961a421f63212d5245de12c0.tar.bz2
Fix setting c_args and friends from command line
When passing more than one -Dc_args it should override the value instead of appending. This is how all other options works. Value should be split on spaces using shlex just like it does with CFLAGS environment variable. Fixes #3473.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/181 initial c_args/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/181 initial c_args/meson.build b/test cases/common/181 initial c_args/meson.build
index 70a6e7a..169d2bd 100644
--- a/test cases/common/181 initial c_args/meson.build
+++ b/test cases/common/181 initial c_args/meson.build
@@ -1,7 +1,7 @@
project('options', 'c')
# Test passing c_args and c_link_args options from the command line.
-assert(get_option('c_args') == ['-march=native', '-funroll-loops'],
+assert(get_option('c_args') == ['-funroll-loops'],
'Incorrect value for c_args option.')
assert(get_option('c_link_args') == ['-random_linker_option'],
'Incorrect value for c_link_args option.')