mirror of
https://github.com/NishiOwO/JWasm.git
synced 2025-04-21 08:44:38 +00:00
Fix building for MSVC
When the path to VCINSTALLDIR contains spaces
This commit is contained in:
parent
6adf25fc83
commit
aa6cbc8fcf
@ -43,11 +43,11 @@ OUTD=MSVC64R
|
||||
|
||||
inc_dirs = -IH -I"$(VCDIR)\include"
|
||||
|
||||
linker = $(VCBIN)\link.exe
|
||||
lib = $(VCBIN)\lib.exe
|
||||
linker = "$(VCBIN)\link.exe"
|
||||
lib = "$(VCBIN)\lib.exe"
|
||||
|
||||
!if $(DEBUG)
|
||||
extra_c_flags = -Zd -Od -DDEBUG_OUT -FAa -Fa$*
|
||||
extra_c_flags = -Zd -Od -DDEBUG_OUT -FAa -Fa$*
|
||||
!else
|
||||
extra_c_flags = -O2 -Ox -GS- -DNDEBUG
|
||||
#extra_c_flags = -Ox -DNDEBUG
|
||||
@ -69,7 +69,7 @@ LOPTD = /debug
|
||||
|
||||
lflagsw = $(LOPTD) /SUBSYSTEM:CONSOLE $(LOPT) /map:$^*.map
|
||||
|
||||
CC=$(VCBIN)\cl.exe -c -nologo $(inc_dirs) $(c_flags)
|
||||
CC="$(VCBIN)\cl.exe" -c -nologo $(inc_dirs) $(c_flags)
|
||||
|
||||
.c{$(OUTD)}.obj:
|
||||
@$(CC) -Fo$* $<
|
||||
|
Loading…
x
Reference in New Issue
Block a user