Skip to content

Support -DFOO and -DFOO=BAR command-line arguments #17

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

Closed
eyalroz opened this issue Apr 30, 2022 · 1 comment
Closed

Support -DFOO and -DFOO=BAR command-line arguments #17

eyalroz opened this issue Apr 30, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@eyalroz
Copy link
Owner

eyalroz commented Apr 30, 2022

We currently support defining macros using -D FOO (defining FOO as 1) and -D FOO=bar (defining FOO as bar). We should support these same options without the space, i.e. -DFOO and -DFOO=bar, like gcc and clang.

@eyalroz eyalroz added the enhancement New feature or request label Apr 30, 2022
@eyalroz
Copy link
Owner Author

eyalroz commented Aug 8, 2022

This is a cxxopts bug/misfeature. See: jarro2783/cxxopts#357.

eyalroz added a commit that referenced this issue Aug 14, 2022
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
eyalroz added a commit that referenced this issue Aug 14, 2022
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
eyalroz added a commit that referenced this issue Aug 15, 2022
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
eyalroz added a commit that referenced this issue Aug 15, 2022
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
eyalroz added a commit that referenced this issue Aug 30, 2022
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
eyalroz added a commit that referenced this issue Jan 15, 2023
… without a space after the `-D`

* Using a newer version of `cxxopts.hpp`, taken from [here](jarro2783/cxxopts#360), which resolves the `-DFOO=bar` issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant