Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 14 pull requests #90119

Merged
merged 44 commits into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
734bfde
Disallow octal zeros in IPv4 addresses
syvb Jul 8, 2021
69de693
Clarify docs on what IPv4 octal addresses are
syvb Jul 9, 2021
b9b97bb
Reject too-long IPs quicker
syvb Jul 9, 2021
a331e5f
Simplify leading zero checks
syvb Jul 11, 2021
ace518d
Add example with a bunch of leading zeos
syvb Jul 11, 2021
d65ab29
Remove unnecessary condition in Barrier::wait()
twetzel59 Jul 24, 2021
403d269
Specify maximum IP address length
syvb Aug 10, 2021
85d6029
`AbstractConst::root`: Always run `subst` when `Node` is `Leaf`
eopb Sep 4, 2021
22c2738
Minor cleanup: make imports more consistent
eopb Sep 4, 2021
6e40618
Remove left over comment
eopb Sep 4, 2021
fc5633f
Make fields on `AbstractConst` private
eopb Sep 4, 2021
b7d9998
Add line that was unintentionally removed
eopb Sep 4, 2021
4a37b9c
Avoid overflow in `VecDeque::with_capacity_in()`.
hkratz Oct 18, 2021
93f80bf
Remove comment saying that we don't build debug rustc in CI, since we do
tgnottingham Oct 18, 2021
aefbd40
Add test for debug logging during incremental compilation
tgnottingham Oct 18, 2021
f2a234e
config: add the option to enable LLVM tests
durin42 Oct 18, 2021
e8b5af1
Upgrade browser-ui-test version to 0.4.5 (it allows to have multi-lin…
GuillaumeGomez Oct 19, 2021
05eb6f3
Cleanup dead code in hir::map::blocks.
cjgillot Oct 19, 2021
99b8c01
Address lcnr review
eopb Oct 19, 2021
6e98688
Replace FnLikeNode by FnKind.
cjgillot Oct 19, 2021
aad48f7
replace format!("") with String::new()
klensy Oct 9, 2021
f3fb821
use array explicitly instead of vec for const content (even if optimi…
klensy Oct 9, 2021
2fc7806
Make `From` impls of NonZero integer const.
lilasta Oct 20, 2021
be30e60
remove duplicate subst
eopb Oct 20, 2021
457f578
Add test for line-number setting
GuillaumeGomez Oct 19, 2021
0aa68a8
Prevent invalid values from existing in Vec::swap_remove
SkiFire13 Oct 20, 2021
50dc319
Add test for duplicated sidebar entries for reexported macro
GuillaumeGomez Oct 20, 2021
69ca324
Add test to ensure that the missing_doc_code_examples is not triggere…
GuillaumeGomez Oct 20, 2021
86b3dd9
stabilize CString::from_vec_with_nul[_unchecked]
CleanCut Sep 26, 2021
39af41e
fix 'since' version number
CleanCut Oct 20, 2021
09de34c
Rollup merge of #86984 - Smittyvb:ipv4-octal-zero, r=m-ou-se
JohnTitor Oct 21, 2021
fb9232b
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
JohnTitor Oct 21, 2021
6f0acbc
Rollup merge of #88644 - eopb:abstractconst_leaf_subst, r=lcnr
JohnTitor Oct 21, 2021
20687bb
Rollup merge of #89292 - CleanCut:stabilize-cstring_from_vec_with_nul…
JohnTitor Oct 21, 2021
d29e98f
Rollup merge of #90010 - rusticstuff:vecdeque_with_capacity_in_overfl…
JohnTitor Oct 21, 2021
a980587
Rollup merge of #90029 - tgnottingham:incr-debug-logging-test, r=Mark…
JohnTitor Oct 21, 2021
632f06d
Rollup merge of #90031 - durin42:allow-llvm-tests, r=Mark-Simulacrum
JohnTitor Oct 21, 2021
47a1f67
Rollup merge of #90048 - GuillaumeGomez:line-number-setting, r=jsha
JohnTitor Oct 21, 2021
afdd0c3
Rollup merge of #90071 - cjgillot:no-blocks, r=oli-obk
JohnTitor Oct 21, 2021
371fd4f
Rollup merge of #90074 - klensy:upvar-all, r=wesleywiser
JohnTitor Oct 21, 2021
e4cfaa1
Rollup merge of #90077 - woppopo:const_nonzero_from, r=oli-obk
JohnTitor Oct 21, 2021
759a8ae
Rollup merge of #90097 - GuillaumeGomez:duplicated-sidebar-entry-reex…
JohnTitor Oct 21, 2021
68a5680
Rollup merge of #90098 - GuillaumeGomez:add-test-foreign-impl-missing…
JohnTitor Oct 21, 2021
3680ecd
Rollup merge of #90099 - SkiFire13:fix-vec-swap-remove, r=dtolnay
JohnTitor Oct 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
config: add the option to enable LLVM tests
I'm working on some LLVM patches in concert with a Rust patch, and it's
helping me quite a bit to have this as an option. It doesn't seem that
hard, so I figured I'd formalize it in x.py and send it upstream.
  • Loading branch information
durin42 committed Oct 19, 2021
commit f2a234e63c6f5db70a363507bf940dbc51d4efda
6 changes: 6 additions & 0 deletions config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ changelog-seen = 2
# Indicates whether the LLVM assertions are enabled or not
#assertions = false

# Indicates whether the LLVM testsuite is enabled in the build or not. Does
# not execute the tests as part of the build as part of x.py build et al,
# just makes it possible to do `ninja check-llvm` in the staged LLVM build
# directory when doing LLVM development as part of Rust development.
#tests = false

# Indicates whether the LLVM plugin is enabled or not
#plugins = false

Expand Down
5 changes: 5 additions & 0 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub struct Config {
// llvm codegen options
pub llvm_skip_rebuild: bool,
pub llvm_assertions: bool,
pub llvm_tests: bool,
pub llvm_plugins: bool,
pub llvm_optimize: bool,
pub llvm_thin_lto: bool,
Expand Down Expand Up @@ -422,6 +423,7 @@ struct Llvm {
thin_lto: Option<bool>,
release_debuginfo: Option<bool>,
assertions: Option<bool>,
tests: Option<bool>,
plugins: Option<bool>,
ccache: Option<StringOrBool>,
version_check: Option<bool>,
Expand Down Expand Up @@ -715,6 +717,7 @@ impl Config {
// Store off these values as options because if they're not provided
// we'll infer default values for them later
let mut llvm_assertions = None;
let mut llvm_tests = None;
let mut llvm_plugins = None;
let mut debug = None;
let mut debug_assertions = None;
Expand All @@ -740,6 +743,7 @@ impl Config {
}
set(&mut config.ninja_in_file, llvm.ninja);
llvm_assertions = llvm.assertions;
llvm_tests = llvm.tests;
llvm_plugins = llvm.plugins;
llvm_skip_rebuild = llvm_skip_rebuild.or(llvm.skip_rebuild);
set(&mut config.llvm_optimize, llvm.optimize);
Expand Down Expand Up @@ -991,6 +995,7 @@ impl Config {

config.llvm_skip_rebuild = llvm_skip_rebuild.unwrap_or(false);
config.llvm_assertions = llvm_assertions.unwrap_or(false);
config.llvm_tests = llvm_tests.unwrap_or(false);
config.llvm_plugins = llvm_plugins.unwrap_or(false);
config.rust_optimize = optimize.unwrap_or(true);

Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ impl Step for Llvm {

let assertions = if builder.config.llvm_assertions { "ON" } else { "OFF" };
let plugins = if builder.config.llvm_plugins { "ON" } else { "OFF" };
let enable_tests = if builder.config.llvm_tests { "ON" } else { "OFF" };

cfg.out_dir(&out_dir)
.profile(profile)
Expand All @@ -180,7 +181,7 @@ impl Step for Llvm {
.define("LLVM_INCLUDE_EXAMPLES", "OFF")
.define("LLVM_INCLUDE_DOCS", "OFF")
.define("LLVM_INCLUDE_BENCHMARKS", "OFF")
.define("LLVM_INCLUDE_TESTS", "OFF")
.define("LLVM_INCLUDE_TESTS", enable_tests)
.define("LLVM_ENABLE_TERMINFO", "OFF")
.define("LLVM_ENABLE_LIBEDIT", "OFF")
.define("LLVM_ENABLE_BINDINGS", "OFF")
Expand Down