Skip to content

Commit

Permalink
compiler_wrap PG: By default do not add arch flags to compiler wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed May 8, 2021
1 parent 65179be commit 7832cf4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions _resources/port1.0/group/compiler_wrapper-1.0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ default compwrap.add_legacysupport_flags yes
options compwrap.print_compiler_command
default compwrap.print_compiler_command no

options compwrap.append_arch_flags
default compwrap.append_arch_flags no

options compwrap.compiler_pre_flags
default compwrap.compiler_pre_flags [list]

Expand Down Expand Up @@ -60,9 +63,12 @@ proc compwrap::comp_flags {tag} {
f77 { set ftag "f" }
default { set ftag ${tag} }
}
set flags "[get_canonical_archflags ${tag}]"
if { ![option compwrap.append_arch_flags] ||
[catch {get_canonical_archflags ${tag}} flags] } {
set flags [join ""]
}
if { [info exists configure.${ftag}flags] } {
set flags "[option configure.${ftag}flags] ${flags}"
append flags " [join [option configure.${ftag}flags]]"
}
return ${flags}
}
Expand Down

0 comments on commit 7832cf4

Please sign in to comment.