summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/autoconf/configure.ac2
-rw-r--r--polly/lib/Makefile5
2 files changed, 6 insertions, 1 deletions
diff --git a/polly/autoconf/configure.ac b/polly/autoconf/configure.ac
index 3a7d06ce32d..a0079769636 100644
--- a/polly/autoconf/configure.ac
+++ b/polly/autoconf/configure.ac
@@ -95,7 +95,7 @@ dnl **************************************************************************
dnl * Create the output files
dnl **************************************************************************
-dnl Let ISL's configure generate isl_config.h and gitversion.h
+dnl Let ISL's configure generate isl_config.h
AC_CONFIG_SUBDIRS(lib/External/isl)
AC_CONFIG_COMMANDS_POST([
dnl Configure ISL with small integer optimization, but do not add the
diff --git a/polly/lib/Makefile b/polly/lib/Makefile
index 1a187d72f96..75eed3417e5 100644
--- a/polly/lib/Makefile
+++ b/polly/lib/Makefile
@@ -108,6 +108,11 @@ ISL_FILES= External/isl/basis_reduction_tab.c \
External/isl/imath/imath.c \
External/isl/imath/imrat.c
+External/isl/gitversion.h:
+ @echo '#define GIT_HEAD_ID "'`cat "${PROJ_SRC_DIR}/External/isl/GIT_HEAD_ID"`'"' > $@
+
+BUILT_SOURCES=External/isl/gitversion.h
+
SOURCES= Polly.cpp \
Support/GICHelper.cpp \
Support/SCEVValidator.cpp \
OpenPOWER on IntegriCloud