build(grammar): remove explicit opt out of optimizations for MSVC (#13451)

`cc` should pick correct defaults when `debug` or `release`.
pull/13460/head
RoloEdits 2025-05-01 13:54:45 -07:00 committed by GitHub
parent 69b9db2fbb
commit aa3fad84ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -451,7 +451,6 @@ fn build_tree_sitter_library(
command command
.args(["/nologo", "/LD", "/I"]) .args(["/nologo", "/LD", "/I"])
.arg(header_path) .arg(header_path)
.arg("/Od")
.arg("/utf-8") .arg("/utf-8")
.arg("/std:c11"); .arg("/std:c11");
if let Some(scanner_path) = scanner_path.as_ref() { if let Some(scanner_path) = scanner_path.as_ref() {
@ -469,7 +468,6 @@ fn build_tree_sitter_library(
cpp_command cpp_command
.args(["/nologo", "/LD", "/I"]) .args(["/nologo", "/LD", "/I"])
.arg(header_path) .arg(header_path)
.arg("/Od")
.arg("/utf-8") .arg("/utf-8")
.arg("/std:c++14") .arg("/std:c++14")
.arg(format!("/Fo{}", object_file.display())) .arg(format!("/Fo{}", object_file.display()))