Skip to content

Commit

Permalink
compiler_wrapper PG: Fix determination of compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed May 6, 2021
1 parent 3cc2585 commit 503474f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _resources/port1.0/group/compiler_wrapper-1.0.tcl
Expand Up @@ -67,9 +67,14 @@ proc compwrap::trim {c} {
proc compwrap::comp_flags {tag} {
switch ${tag} {
cc { set ftag "c" }
f77 { set ftag "f" }
default { set ftag ${tag} }
}
return "[option configure.${ftag}flags] [get_canonical_archflags ${tag}]"
set flags "[get_canonical_archflags ${tag}]"
if { [info exists configure.${ftag}flags] } {
set flags "[option configure.${ftag}flags] ${flags}"
}
return ${flags}
}

proc compwrap::wrapper_path {tag} {
Expand Down

0 comments on commit 503474f

Please sign in to comment.