kolibrios/programs/use_fasm.lua
Ivan Baravy 0635de46a3 Fix use_fasm.lua file to work on Windows.
git-svn-id: svn://kolibrios.org@7979 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-05-24 22:34:03 +00:00

17 lines
372 B
Lua

INCLUDES = ""
FASM_DEFAULT = "fasm"
function add_include(dir)
if INCLUDES == ""
then INCLUDES = dir
else INCLUDES = INCLUDES .. ";" .. dir
end
if tup.getconfig("TUP_PLATFORM") == "win32"
then env_prefix = "set INCLUDE=$(INCLUDES)&&"
else env_prefix = "INCLUDE='$(INCLUDES)' "
end
FASM = env_prefix .. FASM_DEFAULT
end
add_include(tup.getcwd())