mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
rustpkg.mk: Defer shell commands until after 'define' expansion
This way the uname -s check will prevent us from invoking nonexistent sw_vers on Linux.
This commit is contained in:
parent
f6646e17bf
commit
3f1051022a
1 changed files with 3 additions and 3 deletions
|
@ -12,11 +12,11 @@ DO_CLEAN_$(1) = rm -rf $$(DONE_$(1)) $(CFG_BUILD_HOME)/workspace/build/$(CFG_TAR
|
|||
|
||||
EXTRA_RFLAGS_$(1) =
|
||||
|
||||
ifeq ($(shell uname -s),Darwin)
|
||||
ifeq ($(shell sw_vers | grep -c 10.6),1)
|
||||
ifeq ($$(shell uname -s),Darwin)
|
||||
ifeq ($$(shell sw_vers | grep -c 10.6),1)
|
||||
EXTRA_RFLAGS_$(1) += --cfg mac_10_6
|
||||
endif
|
||||
ifeq ($(shell sw_vers | grep -c 10.7),1)
|
||||
ifeq ($$(shell sw_vers | grep -c 10.7),1)
|
||||
EXTRA_RFLAGS_$(1) += --cfg mac_10_7
|
||||
endif
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue