-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
<command-line>: error: macro names must be identifiers #2174
Comments
Can you confirm if this is a bug on gmake2? |
Can you share your premake file used to generate this? It's something like really should have been caught in our test suite, so I'm a bit confused why this is happening. |
ProjectPathConfig.zip |
This is an invalid usage issue. In your debug configuration in the PPCL project, you're adding a "" define to the list. |
I don't think that is causing the issue. I have that so it will cover both linux and windows. With no filter it should be applied to all. Remove it and see the result. I had in the other hand an extra ""_CRT_SECURE_NO_WARNINGS" defined under windows filter which is bug and wrong. |
|
Ok that "defines" is left there for future usage. Shouldn't that be ignored when there is nothing? I don't think that should cause an issue. You prepare your filters, defines ..etc for future usage and premake5 should know when to add or not IMHO. |
As it currently stands, I don't think it's a bug in premake as written, as we don't specify that an empty string is ignored in the documentation. The case can definitely be made to add that functionality, but I wouldn't classify it as a bug currently. |
Ok. thanks for clarifying my lua scripts. |
No problem. This is definitely something worth reviewing on our end, to figure out if it's functionality that should be added or not. |
What seems to be the problem?
Extra -D in the make file (linux) that causes the issue. This happens due to "defines".
DEFINES += -D_CRT_SECURE_NO_WARNINGS -D
What did you expect to happen?
That -D shouldn't be there when there is no other defines available. But premake5 added to the end of the previous defines text.
What have you tried so far?
I have a library that include another vendor library. This library will be static-linked to the main project. I can send the whole project if that is required.
How can we reproduce this?
If you have defines inside the library (lua script), you will get the extra -D in the make file for the library. Removing the -D will compile just fine. This does not affect Windwos 10.
What version of Premake are you using?
premake5
Anything else we should know?
no
The text was updated successfully, but these errors were encountered: