aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-07-16 09:05:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-07-16 09:05:04 +0200
commit51ab0a979c5c53defd5eda9fa997b2abfd0d4f7d (patch)
treea7be7d7a9c8956efc8f9cc81ab7e7576fe78668b /libbuild2/cxx
parentbca2aa388e690d1e575d890cf15e0dc9632728f7 (diff)
Save original compiler path/mode in {c,cxx}.config.path/mode
It turns out that when propagating {c,cxx}.config in tests we don't want to propagate any options (such as *.std) that have been folded into our project's mode.
Diffstat (limited to 'libbuild2/cxx')
-rw-r--r--libbuild2/cxx/init.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/cxx/init.cxx b/libbuild2/cxx/init.cxx
index a43dcb2..8f91b19 100644
--- a/libbuild2/cxx/init.cxx
+++ b/libbuild2/cxx/init.cxx
@@ -435,6 +435,8 @@ namespace build2
vp.insert<process_path_ex> ("cxx.path"),
vp.insert<strings> ("cxx.mode"),
+ vp.insert<path> ("cxx.config.path"),
+ vp.insert<strings> ("cxx.config.mode"),
vp.insert<dir_paths> ("cxx.sys_lib_dirs"),
vp.insert<dir_paths> ("cxx.sys_inc_dirs"),