hwasan: Always set target_hwasan_flags
Fix the "make check" error: Running .../gcc/testsuite/gcc.dg/hwasan/hwasan.exp ... ERROR: tcl error sourcing .../gcc/testsuite/gcc.dg/hwasan/hwasan.exp. ERROR: tcl error code TCL LOOKUP VARNAME target_hwasan_flags ERROR: can't read "target_hwasan_flags": no such variable ... on non-x86-64 targets. * lib/hwasan-dg.exp (hwasan_init): Always set target_hwasan_flags.
This commit is contained in:
parent
d190a5553a
commit
48c8d26d77
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ proc hwasan_init { args } {
|
||||||
|
|
||||||
if [istarget x86_64-*-*] {
|
if [istarget x86_64-*-*] {
|
||||||
set target_hwasan_flags "-mlam=u57"
|
set target_hwasan_flags "-mlam=u57"
|
||||||
|
} else {
|
||||||
|
set target_hwasan_flags ""
|
||||||
}
|
}
|
||||||
|
|
||||||
set link_flags ""
|
set link_flags ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue