Auto merge of #111575 - alex:patch-1, r=pietroalbini
Enable sanitizers and profiler for aarch64-unknown-linux-musl This is pretty heavily cargo-culted, hopefully I didn't screw it up too badly.
This commit is contained in:
commit
776f22292f
@ -1,10 +1,15 @@
|
||||
use crate::spec::{Target, TargetOptions};
|
||||
use crate::spec::{SanitizerSet, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
let mut base = super::linux_musl_base::opts();
|
||||
base.max_atomic_width = Some(128);
|
||||
base.supports_xray = true;
|
||||
base.features = "+v8a".into();
|
||||
base.supported_sanitizers = SanitizerSet::ADDRESS
|
||||
| SanitizerSet::CFI
|
||||
| SanitizerSet::LEAK
|
||||
| SanitizerSet::MEMORY
|
||||
| SanitizerSet::THREAD;
|
||||
|
||||
Target {
|
||||
llvm_target: "aarch64-unknown-linux-musl".into(),
|
||||
|
@ -33,6 +33,11 @@ ENV CC_arm_unknown_linux_gnueabi=arm-unknown-linux-gnueabi-gcc \
|
||||
|
||||
ENV HOSTS=arm-unknown-linux-gnueabi,aarch64-unknown-linux-musl
|
||||
|
||||
ENV RUST_CONFIGURE_ARGS --enable-full-tools --disable-docs --musl-root-aarch64=/usr/local/aarch64-linux-musl \
|
||||
--set target.aarch64-unknown-linux-musl.crt-static=false
|
||||
ENV RUST_CONFIGURE_ARGS \
|
||||
--enable-full-tools \
|
||||
--disable-docs \
|
||||
--musl-root-aarch64=/usr/local/aarch64-linux-musl \
|
||||
--enable-sanitizers \
|
||||
--enable-profiler \
|
||||
--set target.aarch64-unknown-linux-musl.crt-static=false
|
||||
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
|
||||
|
Loading…
x
Reference in New Issue
Block a user