Commit 51155dc3 authored by Jimmy Lu's avatar Jimmy Lu
Browse files

Modify the test script to specific SYSTEMC_HOME and CLANG_INCLUDE path

by default
parent 0c8f6d3a
#!/bin/bash
# Replace with your path for systemc
SYSTEMC_HOME=/usr/local/systemc231
# Replace with your path to `include` for clang
CLANG_INCLUDE=/home/jimmy/clang34/lib/clang/3.4/include
if [ "$#" -ne 1 ]; then
echo "usage: runTest <filename.cpp>"
exit
......@@ -7,5 +14,5 @@ fi
if [ -z $SYSTEMC_HOME ]; then
echo -e "environment variable \$SYSTEMC_HOME not defined, set the variable to SystemC directory\n(e.g. export SYSTEMC_HOME=\"/usr/local/systemc-2.3.1\")";
else
systemc-clang $1 -- -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/include/c++/4.2.1 -I/usr/include -I/$SYSTEMC_HOME/include;
systemc-clang $1 -- -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/include -I/$SYSTEMC_HOME/include -I$CLANG_INCLUDE -x c++ -w -c;
fi;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment