fix windows build target

This commit is contained in:
uazo 2022-10-21 06:58:53 -08:00 committed by GitHub
parent eed67c45b1
commit 400575271c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,38 +12,32 @@ if(getenv("TARGET_CPU") != "") {
} }
# print("Target " + target_cpu) # print("Target " + target_cpu)
enable_kythe_annotations = true
# clang_use_chrome_plugins = false
if (target_os == "android") { if (target_os == "android") {
enable_kythe_annotations = true
chrome_public_manifest_package = "org.bromite.bromite.dev" chrome_public_manifest_package = "org.bromite.bromite.dev"
}
if(_is_debug_build == "true") { if(_is_debug_build == "true") {
# print("Debug build on") # print("Debug build on")
is_debug = true is_debug = true
is_official_build = false is_official_build = false
dcheck_always_on = true dcheck_always_on = true
if (target_os == "win") {
symbol_level = 0
use_large_pdbs = true
} else {
symbol_level = 1 symbol_level = 1
} strip_debug_info = false
strip_debug_info = false generate_linker_map = false
generate_linker_map = false
# since is_cfi require use_thin_lto # since is_cfi require use_thin_lto
# but not work in debug mode # but not work in debug mode
is_cfi = false # disable it is_cfi = false # disable it
use_cfi_cast = false # disable it use_cfi_cast = false # disable it
} else { } else {
if (target_os == "android") {
generate_linker_map = true generate_linker_map = true
} }
} }
if (target_os == "win") { if (target_os == "win") {
symbol_level = 0
use_large_pdbs = true
is_cfi = false # disable it is_cfi = false # disable it
use_cfi_cast = false # disable it use_cfi_cast = false # disable it
use_large_pdbs = true
} }