From f69a53d0b83f6b6448aeacb98442b90e938696f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 May 2017 14:05:21 +0200 Subject: Add ability to limit amount of preprocessing done on source The cc.preprocessed variable can be 'none' (not preprocessed), 'includes' (no depends on preprocessor, e.g., #ifdef, etc), and 'all' (the source is fully preprocessed). Note that for 'all' the source can still contain comments and line continuations. --- build2/c/init.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'build2/c') diff --git a/build2/c/init.cxx b/build2/c/init.cxx index 39ce6fe..ada8596 100644 --- a/build2/c/init.cxx +++ b/build2/c/init.cxx @@ -161,6 +161,7 @@ namespace build2 v["cc.type"], v["cc.system"], v["cc.reprocess"], + v["cc.preprocessed"], v.insert ("c.std", variable_visibility::project), -- cgit v1.1