Browse Source

check for std::__1 during nightly build

Former-commit-id: 104c3f613d8d0ecd789d722faaed120823ea6171
Alec Jacobson 9 years ago
parent
commit
754fa148e4
1 changed files with 9 additions and 1 deletions
  1. 9 1
      scripts/clone-and-build.sh

+ 9 - 1
scripts/clone-and-build.sh

@@ -73,7 +73,6 @@ function guard {
   command="$@"
   pwd
   echo "$command"
-  sleep 2
   if ! output=$($command 2>&1) ;
   then
     report_error "$command" "$output"
@@ -82,6 +81,11 @@ function guard {
   fi
 }
 
+function grep_std_1
+{
+  (! grep -rI "std::__1" *)
+}
+
 set -o xtrace
 # Clone repo
 guard rm -rf /var/tmp/libigl
@@ -105,3 +109,7 @@ mkdir build-use-static
 cd build-use-static
 guard cmake -DCMAKE_BUILD_TYPE=Debug -DLIBIGL_USE_STATIC_LIBRARY=ON ../../tutorial/
 guard make -C ../../tutorial/build-use-static
+# check that no files contain `std::__1` often coming from templates copied
+# from clang output. These will fail on gcc
+cd ../../include/igl
+guard grep_std_1