aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-12-12 13:00:13 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-01-01 17:51:19 -0700
commit43720be04af8ddb8334b210ff936a834fb8871a7 (patch)
tree884a175200dc948e2a1bb40fb10472f356f2a9af /src/codegen.zig
parent5a6a1f8a8ad1475d328c998824981c7b310987d2 (diff)
downloadzig-43720be04af8ddb8334b210ff936a834fb8871a7.tar.gz
zig-43720be04af8ddb8334b210ff936a834fb8871a7.zip
frontend: fix stack protector option logic
Commit 97e23896a9168132b6d36ca22ae1af10dd53d80d regressed this behavior because it made target_util.supportsStackProtector *correctly* notice which zig backend is being used to generate code, while the logic calling that function *incorrectly assumed* that .zig code is being compiled, when in reality it might be only C code being compiled. This commit adjusts the option resolution logic for stack protector so that it takes into account the zig backend only if there is a zig compilation unit. A separate piece of logic checks whether clang supports stack protector for a given target. closes #18009 closes #18114 closes #18254
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions