From 634b5e2d9fd8d2e7a40816cf117bb9e072619b69 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 22 Apr 2020 08:29:45 -0700 Subject: [PATCH 1/2] tests: use `yosys-config --datdir` instead of hard-coded --- tests/various/plugin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/various/plugin.sh b/tests/various/plugin.sh index d6d4aee59..2880c8c06 100644 --- a/tests/various/plugin.sh +++ b/tests/various/plugin.sh @@ -1,6 +1,8 @@ set -e rm -f plugin.so CXXFLAGS=$(../../yosys-config --cxxflags) -CXXFLAGS=${CXXFLAGS// -I\/usr\/local\/share\/yosys\/include/ -I..\/..\/share\/include} +DATDIR=$(../../yosys-config --datdir) +DATDIR=${DATDIR//\//\\\/} +CXXFLAGS=${CXXFLAGS//$DATDIR/..\/..\/share} ../../yosys-config --exec --cxx ${CXXFLAGS} --ldflags -shared -o plugin.so plugin.cc ../../yosys -m ./plugin.so -p "test" | grep -q "Plugin test passed!" From 4f847cb64aa144977172f88ec9b2b91299d68827 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 22 Apr 2020 08:30:03 -0700 Subject: [PATCH 2/2] yosys-config: spelling --- misc/yosys-config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/yosys-config.in b/misc/yosys-config.in index 370835f8f..a31ef38c2 100644 --- a/misc/yosys-config.in +++ b/misc/yosys-config.in @@ -6,7 +6,7 @@ help() { echo "Usage: $0 [--exec] [--prefix pf] args.." echo " $0 --build modname.so cppsources.." echo "" - echo "Replecement args:" + echo "Replacement args:" echo " --cxx @CXX@" echo " --cxxflags $( echo '@CXXFLAGS@' | fmt -w60 | sed ':a;N;$!ba;s/\n/ \\\n /g' )" echo " --ldflags @LDFLAGS@"