fix android cflags

This commit is contained in:
Alexander Frick 2024-01-08 03:55:41 -06:00
parent b3caee6f39
commit b2431dc805
5 changed files with 5 additions and 5 deletions

View file

@ -499,7 +499,7 @@ config("compiler") {
ldflags += [ "-fPIC" ] ldflags += [ "-fPIC" ]
rustflags += [ "-Crelocation-model=pic" ] rustflags += [ "-Crelocation-model=pic" ]
if (is_clang && chrome_pgo_phase == 2) { if (is_clang && chrome_pgo_phase == 2 && !is_android) {
asmflags += [ "-fbasic-block-sections=labels" ] asmflags += [ "-fbasic-block-sections=labels" ]
cflags += [ "-fbasic-block-sections=labels" ] cflags += [ "-fbasic-block-sections=labels" ]
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ] rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]

View file

@ -499,7 +499,7 @@ config("compiler") {
ldflags += [ "-fPIC" ] ldflags += [ "-fPIC" ]
rustflags += [ "-Crelocation-model=pic" ] rustflags += [ "-Crelocation-model=pic" ]
if (is_clang && chrome_pgo_phase == 2) { if (is_clang && chrome_pgo_phase == 2 && !is_android) {
asmflags += [ "-fbasic-block-sections=labels" ] asmflags += [ "-fbasic-block-sections=labels" ]
cflags += [ "-fbasic-block-sections=labels" ] cflags += [ "-fbasic-block-sections=labels" ]
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ] rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]

View file

@ -499,7 +499,7 @@ config("compiler") {
ldflags += [ "-fPIC" ] ldflags += [ "-fPIC" ]
rustflags += [ "-Crelocation-model=pic" ] rustflags += [ "-Crelocation-model=pic" ]
if (is_clang && chrome_pgo_phase == 2) { if (is_clang && chrome_pgo_phase == 2 && !is_android) {
asmflags += [ "-fbasic-block-sections=labels" ] asmflags += [ "-fbasic-block-sections=labels" ]
cflags += [ "-fbasic-block-sections=labels" ] cflags += [ "-fbasic-block-sections=labels" ]
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ] rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]

View file

@ -499,7 +499,7 @@ config("compiler") {
ldflags += [ "-fPIC" ] ldflags += [ "-fPIC" ]
rustflags += [ "-Crelocation-model=pic" ] rustflags += [ "-Crelocation-model=pic" ]
if (is_clang && chrome_pgo_phase == 2) { if (is_clang && chrome_pgo_phase == 2 && !is_android) {
asmflags += [ "-fbasic-block-sections=labels" ] asmflags += [ "-fbasic-block-sections=labels" ]
cflags += [ "-fbasic-block-sections=labels" ] cflags += [ "-fbasic-block-sections=labels" ]
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ] rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]

View file

@ -499,7 +499,7 @@ config("compiler") {
ldflags += [ "-fPIC" ] ldflags += [ "-fPIC" ]
rustflags += [ "-Crelocation-model=pic" ] rustflags += [ "-Crelocation-model=pic" ]
if (is_clang && chrome_pgo_phase == 2) { if (is_clang && chrome_pgo_phase == 2 && !is_android) {
asmflags += [ "-fbasic-block-sections=labels" ] asmflags += [ "-fbasic-block-sections=labels" ]
cflags += [ "-fbasic-block-sections=labels" ] cflags += [ "-fbasic-block-sections=labels" ]
rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ] rustflags += [ "-Cllvm-args=-basic-block-sections=labels" ]