2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2014-08-07 22:06:29 +10:00
|
|
|
|
|
|
|
all:
|
2017-01-01 20:34:23 +01:00
|
|
|
# check that #[cfg_attr(..., ignore)] does the right thing.
|
2014-08-07 22:06:29 +10:00
|
|
|
$(RUSTC) --test test-ignore-cfg.rs --cfg ignorecfg
|
2017-11-23 23:19:50 +08:00
|
|
|
$(call RUN,test-ignore-cfg) | $(CGREP) 'shouldnotignore ... ok' 'shouldignore ... ignored'
|
|
|
|
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -e "^i\.$$"
|
|
|
|
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -v 'should'
|