Skip to content

Conversation

@fingolfin
Copy link
Member

E.g. if one does rm -rf usr && make clean && make then there are tons of errors because rm is asked to delete files that don't exist (anymore). So just pass the -f option to rm to suppress those useless errors.

Make.inc Outdated
-cmd //C rmdir $$(call mingw_to_dos,$(2)/$(3),cd $(2) &&)
else
-rm -r $$(abspath $(2)/$(3))
-rm -rf $$(abspath $(2)/$(3))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe then also remove the - prefix to these and other rm invocations (so that the exit code is no longer ignored)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@fingolfin fingolfin force-pushed the mh/clean-make-clean branch from 04b9c1a to 74d207c Compare March 15, 2022 09:08
@giordano giordano added the building Build system, or building Julia or its dependencies label Mar 27, 2022
@giordano giordano requested a review from staticfloat March 27, 2022 16:48
@staticfloat
Copy link
Member

Thanks Max! This stuff is tiresome and not so sexy, but I'm glad someone steps up to do it!

@staticfloat staticfloat merged commit 4b58679 into JuliaLang:master Mar 30, 2022
@fingolfin fingolfin deleted the mh/clean-make-clean branch March 31, 2022 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

building Build system, or building Julia or its dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants