summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--platforms/toolchain_options.in5
-rw-r--r--scripts/wrapper/libwrapper.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/platforms/toolchain_options.in b/platforms/toolchain_options.in
index 5a9794f26..f8c231f7d 100644
--- a/platforms/toolchain_options.in
+++ b/platforms/toolchain_options.in
@@ -70,6 +70,11 @@ choice
command-line.
endchoice
+config TARGET_COMPILER_RECORD_SWITCHES
+ bool
+ prompt "store compiler flags (-frecord-gcc-switches)"
+ default y
+
config TARGET_EXTRA_CPPFLAGS
string
prompt "Extra CPPFLAGS (cpp)"
diff --git a/scripts/wrapper/libwrapper.sh b/scripts/wrapper/libwrapper.sh
index 8b059d7ab..69c90af65 100644
--- a/scripts/wrapper/libwrapper.sh
+++ b/scripts/wrapper/libwrapper.sh
@@ -179,7 +179,7 @@ cc_add_debug() {
}
cpp_add_target_extra() {
- add_arg -frecord-gcc-switches
+ add_opt_arg TARGET_COMPILER_RECORD_SWITCHES "-frecord-gcc-switches"
add_arg ${PTXDIST_CROSS_CPPFLAGS}
add_opt_arg TARGET_EXTRA_CPPFLAGS ${PTXCONF_TARGET_EXTRA_CPPFLAGS}
}