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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user