Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
9167ce10a2 | |||
b6e035aa35 | |||
5fabba42e9 |
@ -1,6 +1,6 @@
|
|||||||
MSDEV = vs2012
|
MSDEV = vs2022
|
||||||
CONFIG = release
|
CONFIG = release
|
||||||
PLATFORM = x86
|
PLATFORM = x64
|
||||||
LUA_DIR = contrib/lua/src
|
LUA_DIR = contrib/lua/src
|
||||||
LUASHIM_DIR = contrib/luashim
|
LUASHIM_DIR = contrib/luashim
|
||||||
|
|
||||||
|
@ -454,9 +454,12 @@
|
|||||||
-- but had trouble linking to certain static libs; $(OBJECTS) moved up
|
-- but had trouble linking to certain static libs; $(OBJECTS) moved up
|
||||||
-- $(LDFLAGS) moved to end (http://sourceforge.net/p/premake/patches/107/)
|
-- $(LDFLAGS) moved to end (http://sourceforge.net/p/premake/patches/107/)
|
||||||
-- $(LIBS) moved to end (http://sourceforge.net/p/premake/bugs/279/)
|
-- $(LIBS) moved to end (http://sourceforge.net/p/premake/bugs/279/)
|
||||||
|
if (os.host() == "windows") then
|
||||||
local cc = iif(p.languages.isc(cfg.language), "CC", "CXX")
|
p.outln('LINKCMD = -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)')
|
||||||
p.outln('LINKCMD = $(' .. cc .. ') -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)')
|
else
|
||||||
|
local cc = iif(p.languages.isc(cfg.language), "CC", "CXX")
|
||||||
|
p.outln('LINKCMD = $(' .. cc .. ') -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -663,10 +666,16 @@
|
|||||||
targets = targets .. ' $(RESOURCES)'
|
targets = targets .. ' $(RESOURCES)'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local cc = iif(p.languages.isc(cfg.language), "CC", "CXX")
|
||||||
_p('$(TARGET): %s | $(TARGETDIR)', targets)
|
_p('$(TARGET): %s | $(TARGETDIR)', targets)
|
||||||
_p('\t$(PRELINKCMDS)')
|
_p('\t$(PRELINKCMDS)')
|
||||||
_p('\t@echo Linking %s', cfg.project.name)
|
_p('\t@echo Linking %s', cfg.project.name)
|
||||||
_p('\t$(SILENT) $(LINKCMD)')
|
if (os.host() == "windows") then
|
||||||
|
_p('\t$(file > $(OBJDIR)/linkcmds.cli, $(LINKCMD))')
|
||||||
|
_p('\t$(' .. cc .. ') @$(OBJDIR)/linkcmds.cli')
|
||||||
|
else
|
||||||
|
_p('\t$(SILENT) $(LINKCMD)')
|
||||||
|
end
|
||||||
_p('\t$(POSTBUILDCMDS)')
|
_p('\t$(POSTBUILDCMDS)')
|
||||||
_p('')
|
_p('')
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user