Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for --undefine foo to remove define #11400

Merged
merged 2 commits into from Nov 21, 2023

Conversation

kLabz
Copy link
Contributor

@kLabz kLabz commented Nov 21, 2023

Note that on unix, outside hxml files we need to escape with single quotes (so -D '!foo')

Short syntax isn't worth it

@kLabz kLabz requested a review from Simn November 21, 2023 11:29
@Simn
Copy link
Member

Simn commented Nov 21, 2023

That note makes me wonder if we should use something else instead...

@kLabz
Copy link
Contributor Author

kLabz commented Nov 21, 2023

Not sure what else, though. -D -foo is already valid (defines _foo), for example.

@Simn
Copy link
Member

Simn commented Nov 21, 2023

How do real compilers deal with this?

@kLabz
Copy link
Contributor Author

kLabz commented Nov 21, 2023

I suspect they don't allow -foo to become _foo? :/

@Simn
Copy link
Member

Simn commented Nov 21, 2023

I'm very willing to just break that.

@kLabz kLabz changed the title add support for -D !foo to remove define add support for --undefine foo to remove define Nov 21, 2023
@Simn Simn merged commit 5d676dc into development Nov 21, 2023
122 checks passed
@skial skial mentioned this pull request Nov 28, 2023
1 task
0b1kn00b pushed a commit to 0b1kn00b/haxe that referenced this pull request Jan 25, 2024
* add support for -D !foo to remove define

* use long syntax only
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.

None yet

2 participants