mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
mjit headers for universal binary
* common.mk (MJIT_HEADER, MJIT_MIN_HEADER): added hook to separate intermediate headers per archs. * defs/gmake.mk: build mjit headers per -arch options, and then merge the headers with `#ifdef`s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7112c6a1c1
commit
88035b9979
6 changed files with 38 additions and 6 deletions
5
defs/universal.mk
Normal file
5
defs/universal.mk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
arch_flags := $(filter -arch=%,$(subst -arch ,-arch=,$(ARCH_FLAG)))
|
||||
ifeq ($(filter 0 1,$(words $(arch_flags))),)
|
||||
override MJIT_HEADER_SUFFIX = -%
|
||||
override MJIT_HEADER_ARCH = -$(word 2,$(ARCH_FLAG))
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue