From aaf2525e9e8ed356feba437e56df737428a52f55 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 May 2017 15:13:58 +0200 Subject: Add ability to disable use of preprocessed output in compilation This can be done from a buildfile for a scope (including project root scope) and per target via cc.reprocess: cc.reprocess = true obj{hello}: cc.reprocess = false As as well externally via config.cc.reprocess: b config.cc.reprocess=true [configure] --- build2/c/init.cxx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'build2/c') diff --git a/build2/c/init.cxx b/build2/c/init.cxx index 4256e3e..a54060c 100644 --- a/build2/c/init.cxx +++ b/build2/c/init.cxx @@ -143,23 +143,24 @@ namespace build2 v.insert ("c.loptions"), v.insert ("c.libs"), - v.insert ("cc.poptions"), - v.insert ("cc.coptions"), - v.insert ("cc.loptions"), - v.insert ("cc.libs"), + v["cc.poptions"], + v["cc.coptions"], + v["cc.loptions"], + v["cc.libs"], v.insert ("c.export.poptions"), v.insert ("c.export.coptions"), v.insert ("c.export.loptions"), v.insert> ("c.export.libs"), - v.insert ("cc.export.poptions"), - v.insert ("cc.export.coptions"), - v.insert ("cc.export.loptions"), - v.insert ("cc.export.libs"), + v["cc.export.poptions"], + v["cc.export.coptions"], + v["cc.export.loptions"], + v["cc.export.libs"], - v.insert ("cc.type"), - v.insert ("cc.system"), + v["cc.type"], + v["cc.system"], + v["cc.reprocess"], v.insert ("c.std", variable_visibility::project), -- cgit v1.1