Commit b099709
authored
[StackProtector] Do not emit the stack protector on GPU architectures (#70799)
Summary:
This patch changes the code generation to not emit the stack protector
metadata on unsupported architectures. The issue was caused by system
toolchains emitting stack protector option by default which would lead
to errors when compiling for the GPU. I elected to change the code
generation as we may want to update this in the future so we should keep
the `clang` Driver code common. Although the user can use some
combination of `-Xarch-device -fno-stack-protector` to override this, it
is very irritating to do when we shouldn't emit this incompatible IR
anyway.
Fixes: #659111 parent d402645 commit b099709
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
764 | 772 | | |
765 | 773 | | |
766 | 774 | | |
| |||
2296 | 2304 | | |
2297 | 2305 | | |
2298 | 2306 | | |
2299 | | - | |
| 2307 | + | |
2300 | 2308 | | |
2301 | | - | |
| 2309 | + | |
2302 | 2310 | | |
2303 | | - | |
| 2311 | + | |
2304 | 2312 | | |
2305 | | - | |
| 2313 | + | |
2306 | 2314 | | |
2307 | 2315 | | |
2308 | 2316 | | |
| |||
0 commit comments