From 3e0d1255cdf428fb4b7d2381fb82f8db0a0e8bf3 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 20 Mar 2025 14:58:17 +0100 Subject: rules CC: Use the -g flag as fallback in debug mode... ...if no flags are otherwise configured (by toolchain or rule-specific configuration variables). --- CC/RULES | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'CC/RULES') diff --git a/CC/RULES b/CC/RULES index eddf0b7..c618467 100644 --- a/CC/RULES +++ b/CC/RULES @@ -552,7 +552,10 @@ , "If None, the respective value from [\"CC\", \"defaults\"] will be taken." ] , "ENV": ["The environment for any action generated."] - , "DEBUG": ["Compute the debug-stage, needed for local debugging."] + , "DEBUG": + [ "Compute the debug-stage, needed for local debugging." + , "If no compile flags are otherwise configured, [\"-g\"] will be taken." + ] , "LINT": [ "Also provide nodes describing compile actions and header files;" , "those can be used by lint rules (doing also the config transition)" @@ -752,7 +755,10 @@ , "taken from the [\"CC\", \"defaults\"] target" ] , "ENV": ["The environment for any action generated."] - , "DEBUG": ["Compute the debug-stage, needed for local debugging."] + , "DEBUG": + [ "Compute the debug-stage, needed for local debugging." + , "If no compile flags are otherwise configured, [\"-g\"] will be taken." + ] , "LINT": [ "Also provide nodes describing compile actions and header files;" , "those can be used by lint rules (doing also the config transition)" -- cgit v1.2.3