Skip to content

能否考虑添加一个选项使 xmake run 在当前工作目录运行? #440

@OpportunityLiu

Description

@OpportunityLiu

我看action/run里面折腾了那么久,结果我要在当前目录下运行,还得自定义一个脚本

on_run(function (target)
    import("core.base.option")
    import("devel.debugger")
    local targetfile = path.absolute(target:targetfile())
    if option.get("debug") then
        debugger.run(targetfile, option.get("arguments"))
    else
        os.execv(targetfile, option.get("arguments"))
    end
end)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions