-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Remove unnecessary macros #159
Comments
Hi @llxia , can you tell more about this issue like what files to look on and how to approach etc. |
Thanks @2001asjad . Using |
Ok, I'll work on this issue and we can discuss more of this after I make a PR. |
@llxia @renfeiw - for this issue, is it preferred to create a separate makefile for the common macros (D, SQ, Q), that can then be used by all test makefiles (through the use of include statements, see https://stackoverflow.com/questions/19307258/how-to-include-a-makefile-into-an-other-makefile). @2001asjad - It will be useful for you to search through all of the .mk files in this repo as a starting point and see where those D, SQ and Q variables are defined. You will find that they are defined in multiple places. I believe the preference is to define them in 1 place (perhaps a new file called common.mk) and then include them in the files where they are used. |
Ok thank you @smlambert I'll try working on this, if I get stuck I'll ask it then only |
Yes, that's exactly what I thought how we can enhance this. |
Yes, I agree. I think it is easier this way. |
Hello @smlambert , so I came up with a solution, I can make a new makefile where I'll define |
Due to historical reasons, we have
D
,SQ
, andQ
macros defined in makefile in TKG and used in test repos.For example:
https://github.com/AdoptOpenJDK/TKG/blob/master/compile.mk#L17
https://github.com/AdoptOpenJDK/TKG/blob/master/makeGen.mk#L26
https://github.com/AdoptOpenJDK/TKG/blob/master/makeGen.mk#L28
It will be more clear and simple if these values can be explicitly written in makefile and test files. For example,
I think we should verify and remove the macros from makefiles and test repos if they are unnecessary.
The text was updated successfully, but these errors were encountered: