mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[Win32] Fix assembler name when cross compiling
Hostx64\x86\nmake.exe sets AS to ml64 which targets amd64, but we need assembler for x86.
This commit is contained in:
parent
ac6924e10e
commit
eaa1c3190a
1 changed files with 8 additions and 2 deletions
|
@ -22,7 +22,6 @@ MAKEFILE = Makefile
|
|||
CPU = PROCESSOR_LEVEL
|
||||
CC = $(CC) -nologo
|
||||
CPP = $(CC) -EP
|
||||
AS = $(AS) -nologo
|
||||
|
||||
all: -prologue- -generic- -epilogue-
|
||||
i386-mswin32: -prologue- -i386- -epilogue-
|
||||
|
@ -237,8 +236,15 @@ MACHINE = x86
|
|||
# RFLAGS = -r
|
||||
# EXTLIBS =
|
||||
CC = $(CC)
|
||||
AS = $(AS)
|
||||
!if "$(AS)" != "ml64"
|
||||
AS = $(AS) -nologo
|
||||
!endif
|
||||
<<
|
||||
!if "$(AS)" == "ml64"
|
||||
@(findstr -r -c:"^MACHINE *= *x86" $(MAKEFILE) > nul && \
|
||||
(echo AS = $(AS:64=) -nologo) || \
|
||||
(echo AS = $(AS) -nologo) ) >>$(MAKEFILE)
|
||||
!endif
|
||||
@(for %I in (cl.exe) do @set MJIT_CC=%~$$PATH:I) && (call echo MJIT_CC = "%MJIT_CC:\=/%" -nologo>>$(MAKEFILE))
|
||||
@type << >>$(MAKEFILE)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue