diff options
| author | bors <bors@rust-lang.org> | 2018-05-19 03:10:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-19 03:10:53 +0000 |
| commit | 8319ef5b78a10b3a8de4109bb8b0e6d23fbe4de1 (patch) | |
| tree | 131333a33ae4979adbb7e2109a53946985d844a9 /src/bootstrap/bootstrap.py | |
| parent | c6a1979e2046a8eb56900f3191ef69d11e7455e3 (diff) | |
| parent | acc874fbcda98bb5ec95399bea76b9f83227b758 (diff) | |
Auto merge of #50709 - alexcrichton:revert-musl, r=sfackler
Revert #50105 until regression is fixed Discovered at https://github.com/rust-lang/rust/pull/50105#issuecomment-388630750 it looks like this caused a regression with i686 musl, so let's revert in the meantime while a fix is worked out
Diffstat (limited to 'src/bootstrap/bootstrap.py')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 28f5192f2cd..487440becf6 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -489,7 +489,7 @@ class RustBuild(object): """ return os.path.join(self.build_dir, self.build, "stage0") - def get_toml(self, key, section=None): + def get_toml(self, key): """Returns the value of the given key in config.toml, otherwise returns None >>> rb = RustBuild() @@ -501,29 +501,12 @@ class RustBuild(object): >>> rb.get_toml("key3") is None True - - Optionally also matches the section the key appears in - - >>> rb.config_toml = '[a]\\nkey = "value1"\\n[b]\\nkey = "value2"' - >>> rb.get_toml('key', 'a') - 'value1' - >>> rb.get_toml('key', 'b') - 'value2' - >>> rb.get_toml('key', 'c') is None - True """ - - cur_section = None for line in self.config_toml.splitlines(): - section_match = re.match(r'^\s*\[(.*)\]\s*$', line) - if section_match is not None: - cur_section = section_match.group(1) - match = re.match(r'^{}\s*=(.*)$'.format(key), line) if match is not None: value = match.group(1) - if section is None or section == cur_section: - return self.get_string(value) or value.strip() + return self.get_string(value) or value.strip() return None def cargo(self): @@ -606,17 +589,7 @@ class RustBuild(object): env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \ (os.pathsep + env["LIBRARY_PATH"]) \ if "LIBRARY_PATH" in env else "" - env["RUSTFLAGS"] = "-Cdebuginfo=2 " - - build_section = "target.{}".format(self.build_triple()) - target_features = [] - if self.get_toml("crt-static", build_section) == "true": - target_features += ["+crt-static"] - elif self.get_toml("crt-static", build_section) == "false": - target_features += ["-crt-static"] - if target_features: - env["RUSTFLAGS"] += "-C target-feature=" + (",".join(target_features)) + " " - + env["RUSTFLAGS"] = "-Cdebuginfo=2" env["PATH"] = os.path.join(self.bin_root(), "bin") + \ os.pathsep + env["PATH"] if not os.path.isfile(self.cargo()): |
