Skip to content

Commit 98d6762

Browse files
committed
.
1 parent 9b07980 commit 98d6762

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/build.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ await new Command()
9090
if (options.cuda) {
9191
cudaFlags.push('-ccbin', 'clang++-18');
9292
}
93+
} else if (platform === 'win32') {
94+
args.push('-G', 'Visual Studio 17 2022');
95+
if (options.arch === 'x86_64') {
96+
args.push('-A', 'x64');
97+
}
9398
}
9499

95100
// Build for iOS on macOS.
@@ -265,7 +270,8 @@ await new Command()
265270
compilerFlags.push('-march=x86-64-v3');
266271
break;
267272
case 'win32':
268-
compilerFlags.push('/arch:AVX2');
273+
// compilerFlags.push('/arch:AVX2');
274+
compilerFlags.push('-march=x86-64-v3');
269275
break;
270276
}
271277
}

0 commit comments

Comments
 (0)