diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-21 21:46:06 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-21 21:46:06 -0500 |
| commit | 830e0ba2d27b55f999a891d007b24131b790e8c9 (patch) | |
| tree | ae30c1b2d8ec408a9a530ac1dac47c42951ffae9 /src/codegen.cpp | |
| parent | 4640ef589e8fddcab7aeab2c6044bc031cf33515 (diff) | |
| download | zig-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.cpp | 8 |
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. |
