From 7ccfae885273899d42c0ea6059fc6910e72aedbb Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 25 Aug 2022 12:17:26 +0200 Subject: Rules: Implement setting ADD_{C,CXX}FLAGS via variables --- CC/test/RULES | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'CC/test') diff --git a/CC/test/RULES b/CC/test/RULES index f3175d4..8082047 100644 --- a/CC/test/RULES +++ b/CC/test/RULES @@ -7,7 +7,16 @@ , "target_fields": ["srcs", "private-hdrs", "deps", "data"] , "string_fields": ["name", "stage"] , "config_vars": - ["CXX", "CC", "CXXFLAGS", "CFLAGS", "ENV", "TEST_ENV", "CC_TEST_LAUNCHER"] + [ "CXX" + , "CC" + , "CXXFLAGS" + , "CFLAGS" + , "ADD_CXXFLAGS" + , "ADD_CFLAGS" + , "ENV" + , "TEST_ENV" + , "CC_TEST_LAUNCHER" + ] , "implicit": { "defaults": [["./", "..", "defaults"]] , "proto-deps": [] @@ -32,11 +41,24 @@ } , "config_doc": { "CXX": ["The name of the C++ compiler to be used."] + , "CC": ["The name of the C compiler to be used."] , "ENV": ["The environment for any action generated."] , "CXXFLAGS": [ "The flags for CXX to be used instead of the default ones" , "taken from the [\"CC\", \"defaults\"] target" ] + , "CFLAGS": + [ "The flags for CC to be used instead of the default ones" + , "taken from the [\"CC\", \"defaults\"] target" + ] + , "ADD_CXXFLAGS": + [ "The flags to add to the default ones for CXX" + , "taken from the [\"CC\", \"defaults\"] target" + ] + , "ADD_CFLAGS": + [ "The flags to add to the default ones for CC" + , "taken from the [\"CC\", \"defaults\"] target" + ] , "TEST_ENV": ["The environment for executing the test runner."] , "CC_TEST_LAUNCHER": [ "List of strings representing the launcher that is prepend to the" -- cgit v1.2.3