]> git.lizzy.rs Git - rust.git/commitdiff
configure: Add --extra-filename flag
authorBrian Anderson <banderson@mozilla.com>
Tue, 29 Dec 2015 00:11:42 +0000 (00:11 +0000)
committerBrian Anderson <banderson@mozilla.com>
Tue, 29 Dec 2015 00:18:15 +0000 (00:18 +0000)
This mixes in additional information into the hash that is
passed to -C extra-filename. It can be used to further distinguish
the standard libraries if they must be installed next to each
other.

Closes #29559

configure
mk/main.mk

index df76d805f824b4038d8dd84615f3999c0d0b2657..c42fc047667abaf44162e3f9e8d01814f350afb2 100755 (executable)
--- a/configure
+++ b/configure
@@ -622,6 +622,7 @@ valopt aarch64-linux-android-ndk "" "aarch64-linux-android NDK standalone path"
 valopt nacl-cross-path  "" "NaCl SDK path (Pepper Canary is recommended). Must be absolute!"
 valopt release-channel "dev" "the name of the release channel to build"
 valopt musl-root "/usr/local" "MUSL root installation directory"
+valopt extra-filename "" "Additional data that is hashed and passed to the -C extra-filename flag"
 
 # Used on systems where "cc" and "ar" are unavailable
 valopt default-linker "cc" "the default linker"
index 2de18c9871a8dfd2f3a46d5f02b4dd0797a9b667..032ade15f3861cd631e811d0467171e23a01d2d6 100644 (file)
@@ -22,7 +22,7 @@ CFG_PRERELEASE_VERSION=.1
 
 # Append a version-dependent hash to each library, so we can install different
 # versions in the same place
-CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE) | $(CFG_HASH_COMMAND))
+CFG_FILENAME_EXTRA=$(shell printf '%s' $(CFG_RELEASE)$(CFG_EXTRA_FILENAME) | $(CFG_HASH_COMMAND))
 
 ifeq ($(CFG_RELEASE_CHANNEL),stable)
 # This is the normal semver version string, e.g. "0.12.0", "0.12.0-nightly"