diff --git a/polly/autoconf/configure.ac b/polly/autoconf/configure.ac index 3a7d06ce32d7..a0079769636f 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 1a187d72f963..75eed3417e53 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 \