| ... | @@ -2896,7 +2896,7 @@ pub fn addCCArgs( | ... | @@ -2896,7 +2896,7 @@ pub fn addCCArgs( |
| 2896 | try argv.append("-D_DEBUG"); | 2896 | try argv.append("-D_DEBUG"); |
| 2897 | try argv.append("-Og"); | 2897 | try argv.append("-Og"); |
| 2898 | | 2898 | |
| 2899 | if (comp.bin_file.options.link_libc) { | 2899 | if (comp.bin_file.options.link_libc and target.os.tag != .wasi) { |
| 2900 | try argv.append("-fstack-protector-strong"); | 2900 | try argv.append("-fstack-protector-strong"); |
| 2901 | try argv.append("--param"); | 2901 | try argv.append("--param"); |
| 2902 | try argv.append("ssp-buffer-size=4"); | 2902 | try argv.append("ssp-buffer-size=4"); |
| ... | @@ -2908,7 +2908,7 @@ pub fn addCCArgs( | ... | @@ -2908,7 +2908,7 @@ pub fn addCCArgs( |
| 2908 | // See the comment in the BuildModeFastRelease case for why we pass -O2 rather | 2908 | // See the comment in the BuildModeFastRelease case for why we pass -O2 rather |
| 2909 | // than -O3 here. | 2909 | // than -O3 here. |
| 2910 | try argv.append("-O2"); | 2910 | try argv.append("-O2"); |
| 2911 | if (comp.bin_file.options.link_libc) { | 2911 | if (comp.bin_file.options.link_libc and target.os.tag != .wasi) { |
| 2912 | try argv.append("-D_FORTIFY_SOURCE=2"); | 2912 | try argv.append("-D_FORTIFY_SOURCE=2"); |
| 2913 | try argv.append("-fstack-protector-strong"); | 2913 | try argv.append("-fstack-protector-strong"); |
| 2914 | try argv.append("--param"); | 2914 | try argv.append("--param"); |