@@ -31,7 +31,6 @@ $$(HLIB$(2)_H_$(4))/$$(CFG_LIBRUSTC): \
3131 @$$(call E, cp: $$@ )
3232 $$(Q ) cp $$< $$@
3333 $$(Q ) cp -R $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(LIBRUSTC_GLOB ) \
34- $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(LIBRUSTC_DSYM_GLOB ) \
3534 $$(HLIB$(2 ) _H_$(4 ) )
3635
3736$$(HLIB$(2 ) _H_$(4 ) ) /$$(CFG_LIBSYNTAX ) : \
@@ -43,7 +42,6 @@ $$(HLIB$(2)_H_$(4))/$$(CFG_LIBSYNTAX): \
4342 @$$(call E, cp: $$@ )
4443 $$(Q ) cp $$< $$@
4544 $$(Q ) cp -R $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(LIBSYNTAX_GLOB ) \
46- $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(LIBSYNTAX_DSYM_GLOB ) \
4745 $$(HLIB$(2 ) _H_$(4 ) )
4846
4947$$(HLIB$(2 ) _H_$(4 ) ) /$$(CFG_RUNTIME ) : \
@@ -56,15 +54,7 @@ $$(HLIB$(2)_H_$(4))/$$(CFG_CORELIB): \
5654 $$(HLIB$(2 ) _H_$(4 ) ) /$$(CFG_RUNTIME )
5755 @$$(call E, cp: $$@ )
5856 $$(Q ) cp $$< $$@
59- # Subtle: We do not let the shell expand $(CORELIB_DSYM_GLOB) directly rather
60- # we use Make's $$(wildcard) facility. The reason is that, on mac, when using
61- # USE_SNAPSHOT_CORELIB, we copy the core.dylib file out of the snapshot.
62- # In that case, there is no .dSYM file. Annoyingly, bash then refuses to expand
63- # glob, and cp reports an error because libcore-*.dylib.dsym does not exist.
64- # Make instead expands the glob to nothing, which gives us the correct behavior.
65- # (Copy .dsym file if it exists, but do nothing otherwise)
6657 $$(Q ) cp -R $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(CORELIB_GLOB ) \
67- $$(wildcard $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(CORELIB_DSYM_GLOB ) ) \
6858 $$(HLIB$(2 ) _H_$(4 ) )
6959
7060$$(HLIB$(2 ) _H_$(4 ) ) /$$(CFG_STDLIB ) : \
@@ -74,7 +64,6 @@ $$(HLIB$(2)_H_$(4))/$$(CFG_STDLIB): \
7464 @$$(call E, cp: $$@ )
7565 $$(Q ) cp $$< $$@
7666 $$(Q ) cp -R $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(STDLIB_GLOB ) \
77- $$(wildcard $$(TLIB$(1 ) _T_$(4 ) _H_$(3 ) ) /$(STDLIB_DSYM_GLOB ) ) \
7867 $$(HLIB$(2 ) _H_$(4 ) )
7968
8069$$(HLIB$(2 ) _H_$(4 ) ) /libcore.rlib: \
0 commit comments