mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
gmake.mk: universal assembler rules
* Makefile.in (CFLAGS_NO_ARCH): split from ARCH_FLAG. * defs/gmake.mk: define assembler rules per architectures for universal binaries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1b88695be
commit
2f0c383d9d
2 changed files with 8 additions and 1 deletions
|
@ -57,7 +57,8 @@ CC_VERSION = @CC_VERSION@
|
|||
OUTFLAG = @OUTFLAG@$(empty)
|
||||
COUTFLAG = @COUTFLAG@$(empty)
|
||||
ARCH_FLAG = @ARCH_FLAG@
|
||||
CFLAGS = @CFLAGS@ $(ARCH_FLAG)
|
||||
CFLAGS_NO_ARCH = @CFLAGS@
|
||||
CFLAGS = $(CFLAGS_NO_ARCH) $(ARCH_FLAG)
|
||||
cflags = @cflags@
|
||||
optflags = @optflags@
|
||||
debugflags = @debugflags@
|
||||
|
|
|
@ -11,6 +11,12 @@ endif
|
|||
|
||||
ifneq ($(filter universal-%,$(arch)),)
|
||||
define archcmd
|
||||
%.$(1).S: %.c
|
||||
@$$(ECHO) translating $$< with $(2)
|
||||
$$(Q) $$(CC) $$(CFLAGS_NO_ARCH) $(2) $$(XCFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$@ -S $$<
|
||||
|
||||
%.S: %.$(1).S
|
||||
|
||||
%.$(1).i: %.c
|
||||
@$$(ECHO) preprocessing $$< with $(2)
|
||||
$$(Q) $$(CPP) $$(warnflags) $(2) $$(XCFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$@ -E $$< > $$@
|
||||
|
|
Loading…
Reference in a new issue