-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Makefile: add 'clean_crystal' target #4268
Makefile: add 'clean_crystal' target #4268
Conversation
It is useful in compiler development cycle. $ vim src/... # edit compiler sources (but incomplete) $ make crystal # oops! maked incompilable compiler... $ make crystal # failed because compiler does not work At such time I don't want to use `make clean` because it removes `libcrystal` and `llvmext` also. I don't want to build C++ files again, so I added `clean-crystal` target in Makefile. It removes the files built by `crystal` command. Now, we can use `make clean_crystal crystal` to recompile `crystal` after removing compiler itself.
I've done something like in my working copy with an additional phony rebuild as
But I always wonder if it won't be better to |
Compiling a stage 2 compiler with a compiled compiler is very useful (I did it a lot with #4182). |
@RX14 Yes. I think so too, and so I don't make |
I think this is useful, but I'm a bit worried about naming. Having |
@mverzilli the proposed What about |
I wrote description for |
I think |
Fair enough, I'm probably the least experienced with |
It is useful in compiler development cycle.
At such time I don't want to use
make clean
because it removeslibcrystal
andllvmext
also. I don't want to build C++ files again, so I addedclean-crystal
target in Makefile. It removes the files built bycrystal
command. Now, we can usemake clean_crystal crystal
to recompilecrystal
after removing compiler itself.