Rollup merge of #70054 - rojamd:android-pgo, r=michaelwoerister

Build dist-android with --enable-profiler

This will make the runtime available to enable PGO for Rust code in Firefox on Android.

r? @michaelwoerister
This commit is contained in:
Mazdak Farrokhzad 2020-03-21 08:51:15 +01:00 committed by GitHub
commit bbd1ca3b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -23,6 +23,7 @@ ENV TARGETS=$TARGETS,x86_64-linux-android
ENV RUST_CONFIGURE_ARGS \ ENV RUST_CONFIGURE_ARGS \
--enable-extended \ --enable-extended \
--enable-profiler \
--arm-linux-androideabi-ndk=/android/ndk/arm-14 \ --arm-linux-androideabi-ndk=/android/ndk/arm-14 \
--armv7-linux-androideabi-ndk=/android/ndk/arm-14 \ --armv7-linux-androideabi-ndk=/android/ndk/arm-14 \
--thumbv7neon-linux-androideabi-ndk=/android/ndk/arm-14 \ --thumbv7neon-linux-androideabi-ndk=/android/ndk/arm-14 \

View File

@ -41,7 +41,6 @@ fn main() {
cfg.flag("-fno-builtin"); cfg.flag("-fno-builtin");
cfg.flag("-fvisibility=hidden"); cfg.flag("-fvisibility=hidden");
cfg.flag("-fomit-frame-pointer"); cfg.flag("-fomit-frame-pointer");
cfg.flag("-ffreestanding");
cfg.define("VISIBILITY_HIDDEN", None); cfg.define("VISIBILITY_HIDDEN", None);
if !target.contains("windows") { if !target.contains("windows") {
cfg.define("COMPILER_RT_HAS_UNAME", Some("1")); cfg.define("COMPILER_RT_HAS_UNAME", Some("1"));