aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-21 21:46:06 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-21 21:46:06 -0500
commit830e0ba2d27b55f999a891d007b24131b790e8c9 (patch)
treeae30c1b2d8ec408a9a530ac1dac47c42951ffae9 /src/codegen.cpp
parent4640ef589e8fddcab7aeab2c6044bc031cf33515 (diff)
downloadzig-830e0ba2d27b55f999a891d007b24131b790e8c9.tar.gz
zig-830e0ba2d27b55f999a891d007b24131b790e8c9.zip
enable native CPU feature for windows; disable failing tests
See #508. These can be re-enabled when we upgrade to LLVM 10.
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index c2dcdb38b8..bb14d39a91 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8787,14 +8787,6 @@ static void init(CodeGen *g) {
if (g->zig_target->is_native) {
target_specific_cpu_args = ZigLLVMGetHostCPUName();
target_specific_features = ZigLLVMGetNativeFeatures();
- // LLVM creates invalid binaries on Windows sometimes.
- // See https://github.com/ziglang/zig/issues/508
- // As a workaround we do not use target native features on Windows.
- // This logic is repeated in stage1.zig
- if (g->zig_target->os == OsWindows || g->zig_target->os == OsUefi) {
- target_specific_cpu_args = "";
- target_specific_features = "";
- }
}
// Override CPU and features if defined by user.