Skip to content

Commit 2559eb7

Browse files
committed
regtests/Makefile: Ensure PRJ_TARGET is passed.
Fix compilation error while builind and running tests. Fixes VC15-016.
1 parent ce314ea commit 2559eb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

regtests/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################################################################
22
# Ada Web Server #
33
# #
4-
# Copyright (C) 2003-2017, AdaCore #
4+
# Copyright (C) 2003-2022, AdaCore #
55
# #
66
# This is free software; you can redistribute it and/or modify it #
77
# under terms of the GNU General Public License as published by the #
@@ -24,18 +24,18 @@ endif
2424

2525
build:
2626
$(GPRBUILD) -q -p -XLIBRARY_TYPE=$(DEFAULT_LIBRARY_TYPE) \
27-
$(foreach v,PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
27+
$(foreach v,PRJ_TARGET PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
2828
--subdirs=$(SDIR)/$(DEFAULT_LIBRARY_TYPE) -Pregtests
2929

30-
test: build
30+
test: build
3131
ADA_PROJECT_PATH="$(abspath $(CURDIR)/..)" \
3232
PATH=.:${PATH} \
33-
$(foreach v,PRJ_BUILD TARGET TP_XMLADA,$(v)="$($(v))") \
33+
$(foreach v,PRJ_TARGET PRJ_BUILD TARGET TP_XMLADA,$(v)="$($(v))") \
3434
./testsuite.py --jobs=4
3535

3636
clean:
3737
-$(GPRCLEAN) -XLIBRARY_TYPE=$(DEFAULT_LIBRARY_TYPE) \
38-
$(foreach v,PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
38+
$(foreach v,PRJ_TARGET PRJ_BUILD TARGET VERSION,"-X$(v)=$($(v))") \
3939
--subdirs=$(SDIR)/$(DEFAULT_LIBRARY_TYPE) -Pregtests
4040
rm -fr out
4141
rm -f *.pyc

0 commit comments

Comments
 (0)