From dd8d70eeff64f5540b6bb0418ee0028554255954 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Tue, 17 Nov 2020 04:41:15 -0800 Subject: [PATCH] Build without LIME --- benchmarks/Benchmark_IO.cc | 5 ++++- benchmarks/Benchmark_IO.hpp | 2 +- benchmarks/Benchmark_IO_vs_dir.cc | 5 ++++- scripts/filelist | 7 +++---- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/benchmarks/Benchmark_IO.cc b/benchmarks/Benchmark_IO.cc index 0d80d425..87e7224d 100644 --- a/benchmarks/Benchmark_IO.cc +++ b/benchmarks/Benchmark_IO.cc @@ -1,4 +1,3 @@ - #include "Benchmark_IO.hpp" #ifndef BENCH_IO_LMIN @@ -13,6 +12,7 @@ #define BENCH_IO_NPASS 10 #endif +#ifdef HAVE_LIME using namespace Grid; std::string filestem(const int l) @@ -196,3 +196,6 @@ int main (int argc, char ** argv) return EXIT_SUCCESS; } +#else +int main(int argc,char ** argv){} +#endif diff --git a/benchmarks/Benchmark_IO.hpp b/benchmarks/Benchmark_IO.hpp index c4a6ca58..2ff42d52 100644 --- a/benchmarks/Benchmark_IO.hpp +++ b/benchmarks/Benchmark_IO.hpp @@ -2,12 +2,12 @@ #define Benchmark_IO_hpp_ #include -#ifdef HAVE_LIME #define MSG std::cout << GridLogMessage #define SEP \ "-----------------------------------------------------------------------------" #define BIGSEP \ "=============================================================================" +#ifdef HAVE_LIME namespace Grid { diff --git a/benchmarks/Benchmark_IO_vs_dir.cc b/benchmarks/Benchmark_IO_vs_dir.cc index e030bc39..8252547b 100644 --- a/benchmarks/Benchmark_IO_vs_dir.cc +++ b/benchmarks/Benchmark_IO_vs_dir.cc @@ -1,5 +1,5 @@ #include "Benchmark_IO.hpp" - +#ifdef HAVE_LIME using namespace Grid; int main (int argc, char ** argv) @@ -97,3 +97,6 @@ int main (int argc, char ** argv) return EXIT_SUCCESS; } +#else +int main(int argc,char ** argv){} +#endif diff --git a/scripts/filelist b/scripts/filelist index 78747315..27425a3e 100755 --- a/scripts/filelist +++ b/scripts/filelist @@ -26,11 +26,10 @@ for subdir in $dirs; do echo "tests-local: ${TESTLIST} " > Make.inc echo ${PREF}_PROGRAMS = ${TESTLIST} >> Make.inc echo >> Make.inc - HADLINK=`[ $subdir = './hadrons' ] && echo '-lHadrons '` for f in $TESTS; do BNAME=`basename $f .cc` echo ${BNAME}_SOURCES=$f >> Make.inc - echo ${BNAME}_LDADD=${HADLINK}-lGrid >> Make.inc + echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a' >> Make.inc echo >> Make.inc done if [ $subdir != '.' ]; then @@ -49,7 +48,7 @@ echo >> Make.inc for f in $TESTS; do BNAME=`basename $f .cc` echo ${BNAME}_SOURCES=$f >> Make.inc - echo ${BNAME}_LDADD=-lGrid>> Make.inc + echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a' >> Make.inc echo >> Make.inc done cd .. @@ -65,7 +64,7 @@ echo >> Make.inc for f in $TESTS; do BNAME=`basename $f .cc` echo ${BNAME}_SOURCES=$f >> Make.inc - echo ${BNAME}_LDADD=-lGrid>> Make.inc + echo ${BNAME}_LDADD='$(top_builddir)/Grid/libGrid.a'>> Make.inc echo >> Make.inc done cd ..