premake / premake/premake-core

target.abspath returns a relative path

Open
#94 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
3.6k
Forks
654
Avg merge
1d 1h
Merged PRs (30d)
13

Description

%{cfg.buildtarget.abspath} returns a relative path instead of an absolute path.

My usage :

    filter "options:not static"
        kind "SharedLib"
        postbuildcommands ("{COPY} %{cfg.buildtarget.abspath} "..os.getcwd().."/../")

I'm on windows, building for vs2013

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Windows with the shown Lua configuration and the VS2013 generator, starting from the %{cfg.buildtarget.abspath} entry point. Trace how the build target path is resolved and verify that the result is absolute; done means the post-build command receives an absolute path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.