Skip to content

Commit 1d449dc

Browse files
maleadtcharleskawczynski
authored andcommitted
Make trimming tests work in an out-of-tree build. (JuliaLang#58340)
1 parent 6b0e25b commit 1d449dc

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

test/trimming/Makefile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ release: $(BIN)/hello$(EXE) $(BIN)/basic_jll$(EXE)
3838
$(BIN)/hello-o.a: $(SRCDIR)/hello.jl $(JULIAC_BUILDSCRIPT)
3939
$(JULIA) -t 1 -J $(JULIA_LIBDIR)/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --output-o $@ --output-incremental=no --strip-ir --strip-metadata --experimental --trim $(JULIAC_BUILDSCRIPT) $< --output-exe true
4040

41+
<<<<<<< HEAD
4142
<<<<<<< HEAD
4243
$(BIN)/basic_jll-o.a: $(SRCDIR)/basic_jll.jl $(JULIAC_BUILDSCRIPT)
4344
$(JULIA) -t 1 -J $(JULIA_LIBDIR)/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --project=$(SRCDIR) -e "using Pkg; Pkg.instantiate()"
@@ -58,19 +59,28 @@ clean:
5859
basic_jll-o.a: $(SRCDIR)/basic_jll.jl $(BUILDSCRIPT)
5960
$(JULIA) -t 1 -J $(BIN)/../lib/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --project=$(SRCDIR) -e "using Pkg; Pkg.instantiate()"
6061
$(JULIA) -t 1 -J $(BIN)/../lib/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --project=$(SRCDIR) --output-o $@ --output-incremental=no --strip-ir --strip-metadata --experimental --trim $(BUILDSCRIPT) $< --output-exe true
62+
=======
63+
$(BIN)/basic_jll-o.a: $(SRCDIR)/basic_jll.jl $(JULIAC_BUILDSCRIPT)
64+
$(JULIA) -t 1 -J $(JULIA_LIBDIR)/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --project=$(SRCDIR) -e "using Pkg; Pkg.instantiate()"
65+
$(JULIA) -t 1 -J $(JULIA_LIBDIR)/julia/sys.$(SHLIB_EXT) --startup-file=no --history-file=no --project=$(SRCDIR) --output-o $@ --output-incremental=no --strip-ir --strip-metadata --experimental --trim $(JULIAC_BUILDSCRIPT) $< --output-exe true
66+
>>>>>>> 6a796e0693 (Make trimming tests work in an out-of-tree build. (#58340))
6167

62-
hello$(EXE): hello-o.a
68+
$(BIN)/hello$(EXE): $(BIN)/hello-o.a
6369
$(CC) -o $@ $(WHOLE_ARCHIVE) $< $(NO_WHOLE_ARCHIVE) $(CPPFLAGS_ADD) $(CPPFLAGS) $(CFLAGS_ADD) $(CFLAGS) $(LDFLAGS_ADD) $(LDFLAGS)
6470

65-
basic_jll$(EXE): basic_jll-o.a
71+
$(BIN)/basic_jll$(EXE): $(BIN)/basic_jll-o.a
6672
$(CC) -o $@ $(WHOLE_ARCHIVE) $< $(NO_WHOLE_ARCHIVE) $(CPPFLAGS_ADD) $(CPPFLAGS) $(CFLAGS_ADD) $(CFLAGS) $(LDFLAGS_ADD) $(LDFLAGS)
6773

68-
check: hello$(EXE) basic_jll$(EXE)
69-
$(JULIA) --depwarn=error $(SRCDIR)/../runtests.jl $(SRCDIR)/trimming
74+
check: $(BIN)/hello$(EXE) $(BIN)/basic_jll$(EXE)
75+
$(JULIA) --depwarn=error $(SRCDIR)/trimming.jl $<
7076

7177
clean:
78+
<<<<<<< HEAD
7279
-rm -f hello$(EXE) basic_jll$(EXE) hello-o.a basic_jll-o.a
7380
>>>>>>> ff4e43c989 (trimming: Remove `init.c` from test)
81+
=======
82+
-rm -f $(BIN)/hello$(EXE) $(BIN)/basic_jll$(EXE) $(BIN)/hello-o.a $(BIN)/basic_jll-o.a
83+
>>>>>>> 6a796e0693 (Make trimming tests work in an out-of-tree build. (#58340))
7484

7585
.PHONY: release clean check
7686

0 commit comments

Comments
 (0)