[SPIRV] Automatic Configuration of Beehive-SPIRV Toolkit
@@ -33,6 +33,20 @@ for ((i=0;i<${#selected_backends_list[@]};i++)); do
selected_backends=${selected_backends}${selected_backends_list[i]}
done
+## Automatic Build for the SPIR-V Beehive Toolkit
+if [[ $selected_backends == *spirv* ]]
+then
+ current=$PWD
+ spirvToolkit="spirv-beehive-toolkit"
+ if [[ ! -d spirv-beehive-toolkit ]]
+ then
+ git clone git@github.com:beehive-lab/spirv-beehive-toolkit.git
+ fi
+ cd $spirvToolkit
+ mvn clean install
+ cd $current
+fi
+
options="-T1.5C -Dcmake.root.dir=$CMAKE_ROOT -P$1,${selected_backends} "
if [[ $3 == "OFFLINE" ]]; then
options="-o $options"
