aboutsummaryrefslogtreecommitdiff
path: root/autosetup/cc.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'autosetup/cc.tcl')
-rw-r--r--autosetup/cc.tcl11
1 files changed, 3 insertions, 8 deletions
diff --git a/autosetup/cc.tcl b/autosetup/cc.tcl
index d0fd980..707e69c 100644
--- a/autosetup/cc.tcl
+++ b/autosetup/cc.tcl
@@ -333,13 +333,7 @@ proc cc-get-settings {} {
# Returns the previous settings
proc cc-update-settings {args} {
set prev [cc-get-settings]
- array set new $prev
-
- foreach {name value} $args {
- set new($name) $value
- }
- cc-store-settings $new
-
+ cc-store-settings [dict merge $prev $args]
return $prev
}
@@ -418,7 +412,7 @@ proc cc-with {settings args} {
#
proc cctest {args} {
set src conftest__.c
- set tmp conftest__.o
+ set tmp conftest__
# Easiest way to merge in the settings
cc-with $args {
@@ -470,6 +464,7 @@ proc cctest {args} {
}
if {!$opts(-link)} {
+ set tmp conftest__.o
lappend cmdline -c
}
lappend cmdline {*}$opts(-cflags)