mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
crown: Pass --cfg crown
to rustc from crown (#35073)
* crown: Pass `--cfg crown` to rustc from crown also includes minor fix in crown for wrapper running based on clippy code Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * fix doc Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> * Update python/servo/command_base.py Co-authored-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
22867c5046
commit
724f701f79
3 changed files with 26 additions and 8 deletions
10
support/crown/tests/run-pass/cfg_crown.rs
Normal file
10
support/crown/tests/run-pass/cfg_crown.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
//@rustc-env:RUSTC_BOOTSTRAP=1
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
const _: () = assert!(cfg!(crown), "cfg(crown) not set!");
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue