Bug 1337895 - Make the pkg-config rust crate happy when cross-compiling. r=froydnj
authorKartikaya Gupta <kgupta@mozilla.com>
Wed, 08 Feb 2017 14:13:50 -0500
changeset 341466 43233b308b2d7e4007d7403dce7d947cc00a2909
parent 341465 d229cbc1b3120cf53dbdbd12fbdce20a8d3bff2d
child 341467 9da1857374780d5fc4c8babf11bf2d1ac8443bd4
push id86727
push userkwierso@gmail.com
push dateThu, 09 Feb 2017 00:21:26 +0000
treeherdermozilla-inbound@55a4f5189115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1337895
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1337895 - Make the pkg-config rust crate happy when cross-compiling. r=froydnj MozReview-Commit-ID: 1430wwCYbj4
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -953,16 +953,17 @@ rustflags_override = RUSTFLAGS='$(rustfl
 endif
 
 CARGO_BUILD = env $(rustflags_override) \
 	CARGO_TARGET_DIR=. \
 	RUSTC=$(RUSTC) \
 	MOZ_DIST=$(ABS_DIST) \
 	LIBCLANG_PATH=$(MOZ_LIBCLANG_PATH) \
 	CLANG_PATH=$(MOZ_CLANG_PATH) \
+	PKG_CONFIG_ALLOW_CROSS=1 \
 	$(CARGO) build $(cargo_build_flags)
 
 ifdef RUST_LIBRARY_FILE
 
 ifdef RUST_LIBRARY_FEATURES
 rust_features_flag := --features "$(RUST_LIBRARY_FEATURES)"
 endif