premake / premake/premake-core
_TARGET_OS does not point to macosx when specifying --os macosx
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.6k
- Forks
- 654
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 13
Description
I have a premake file in which I want to output to different directory based on the tool and operating system that I'm generating for. In my premake file I have the following line:
location (_ACTION .. "-" .. _TARGET_OS)
When I do premake5 gmake it outputs to gmake-linux. However, if I do premake5 gmake --os macosx it still outputs to gmake-linux.
I also tried setting the location under different configurations, but couldn't get that to work either.
I am using premake5 alpha 12.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the shown location expression by running premake5 gmake and premake5 gmake --os macosx. Trace how --os macosx reaches _TARGET_OS during gmake generation, and consider the issue done when the second command produces a gmake-macosx location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100