diff options
Diffstat (limited to 'compiler_wrapper/config_test.go')
-rw-r--r-- | compiler_wrapper/config_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler_wrapper/config_test.go b/compiler_wrapper/config_test.go index 47432856..49487d8e 100644 --- a/compiler_wrapper/config_test.go +++ b/compiler_wrapper/config_test.go @@ -118,7 +118,12 @@ func TestRealConfigWithConfigNameFlag(t *testing.T) { } func isSysrootHardened(cfg *config) bool { - return cfg.isHardened + for _, arg := range cfg.commonFlags { + if arg == "-D_FORTIFY_SOURCE=3" { + return true + } + } + return false } func resetGlobals() { |