fix is_cfi build error in debug

This commit is contained in:
uazo 2022-02-22 14:34:51 +01:00 committed by GitHub
parent cc085e6ebb
commit d184899841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ if(getenv("TARGET_CPU") != "") {
enable_kythe_annotations = true
clang_use_chrome_plugins = false
chrome_public_manifest_package = "org.bromite.bromite.dev"
if(_is_debug_build == "true") {
# print("Debug build on")
@ -24,6 +25,11 @@ if(_is_debug_build == "true") {
symbol_level = 1
strip_debug_info = false
generate_linker_map = false
# since is_cfi require use_thin_lto
# but not work in debug mode
is_cfi = false # disable it
use_cfi_cast = false # disable it
} else {
generate_linker_map = true
}