premake / premake/premake-core

`undefines` unsupported on xcode4

Open
#2,091 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

What seems to be the problem?

undefines is not handled by xcode4 generator.

What did you expect to happen?

That feature undefines is managed by xcode4 generator.

What have you tried so far?
Describe any steps you've taken to try to solve or workaround the bug.

How can we reproduce this?

Testing project https://github.com/Jarod42/premake-sample-projects/tree/master/projects/project-undefines

  • Visual Studio 2022 (vs2022)
  • Visual Studio 2019 (vs2019)
  • Visual Studio 2017 (vs2017)
  • Visual Studio 2015 (vs2015)
  • Visual Studio 2012 (vs2012)
  • Visual Studio 2010 (vs2010)
  • Visual Studio 2008 (vs2008)
  • Visual Studio 2005 (vs2005)
  • GNU Makefile (gmake)
  • GNU Makefile 2 (gmake2)
  • XCode (xcode)
  • Codelite
  • Other (Please list below)

What version of Premake are you using?
dev version (https://github.com/premake/premake-core/commit/3f1e4f8ded5ce1397bd286eef5e2ebef02556422)

Anything else we should know?

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

Start by running the linked project-undefines reproduction with the xcode generator and inspect the xcode4 generator implementation. Compare its generated project settings with the expected handling of undefines, then verify that the generated Xcode project preserves those definitions when the reproduction project is run again.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.