Skip to content

Conversation

@p0358
Copy link
Contributor

@p0358 p0358 commented Jul 4, 2023

with that my own project finally kinda builds :3

closes #27

p.w(" deps = msvc")
p.w("")
p.w("rule asm")
p.w(" command = " .. asm .. " $ASMFLAGS" .. " /c /nologo /Zi /Fl\"\" /Fo$out /Ta $in")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly:

Suggested change
p.w(" command = " .. asm .. " $ASMFLAGS" .. " /c /nologo /Zi /Fl\"\" /Fo$out /Ta $in")
p.w(" command = " .. asm .. " $ASMFLAGS" .. ' /c /nologo /Zi /Fl"" /Fo$out /Ta $in')

cxxflags = {"CXXFLAGS = $CXXFLAGS " .. getcxxflags(toolset, cfg, filecfg)}
end
add_build(cfg, objfilename, {}, "cxx", {filepath}, pch_dependency, regular_file_dependencies, cxxflags)
elseif shouldcompileasasm(filecfg) and toolset == p.tools.msc then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why toolset filtering here?
I would prefer to handle "asm" in p.tools.gcc.gettoolname (to return "gcc").


local extra = ""
if filecfg.exceptionhandling == "SEH" then
extra = extra .. " /safeseh"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is msc specific :-/
Should ideally be in premake-core.
here, at least protect with toolset check.
See if it a workaround can be done in "Some toolset fixes/helper" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for .asm files

2 participants