Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit e5acbc0

Browse files
committed
Allow people to override the default SPEC directory
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@26407 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 14c4096 commit e5acbc0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

External/SPEC/Makefile.spec

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ LDFLAGS += -lm
1818
#
1919
CURRENT_DIR := $(shell cd .; pwd)
2020
BENCH_NAME := $(subst $(shell cd .. ; pwd),,$(CURRENT_DIR))
21-
SPEC_SUBDIR := $(subst $(shell cd ../..; pwd),,$(CURRENT_DIR))
2221

2322
# Remove any leading /'s from the paths
2423
BENCH_NAME := $(patsubst /%,%,$(BENCH_NAME))
24+
25+
## SPEC_SUITEDIR - Allow SPEC configuration files to override "CINT2000" with
26+
## something else.
27+
28+
ifndef SPEC_SUITEDIR
29+
SPEC_SUBDIR := $(subst $(shell cd ../..; pwd),,$(CURRENT_DIR))
2530
SPEC_SUBDIR := $(patsubst /%,%,$(SPEC_SUBDIR))
31+
else
32+
SPEC_SUBDIR := $(SPEC_SUITEDIR)/$(BENCH_NAME)
33+
endif
2634

2735
ifndef SPEC_BENCH_DIR
2836
SPEC_BENCH_DIR := $(SPEC_ROOT)/$(SPEC_SUBDIR)
@@ -31,9 +39,11 @@ endif
3139
PROG := $(BENCH_NAME)
3240
ifndef Source
3341
Source := $(wildcard $(SPEC_BENCH_DIR)/src/*.c \
42+
$(SPEC_BENCH_DIR)/src/*.C \
3443
$(SPEC_BENCH_DIR)/src/*.cc \
3544
$(SPEC_BENCH_DIR)/src/*.cpp \
3645
$(SPEC_BENCH_DIR)/src/*.f \
46+
$(SPEC_BENCH_DIR)/src/*.F \
3747
$(SPEC_BENCH_DIR)/src/*.f90 \
3848
$(SPEC_BENCH_DIR)/src/*.F90)
3949
endif

0 commit comments

Comments
 (0)