enable native CPU feature for windows; disable failing tests

See #508. These can be re-enabled when we upgrade to LLVM 10.
This commit is contained in:
Andrew Kelley
2020-01-21 21:46:06 -05:00
parent 4640ef589e
commit 830e0ba2d2
8 changed files with 40 additions and 21 deletions

View File

@@ -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.