llvm.org GIT mirror llvm / a8ca6b6
test-release.sh: Drop autoconf support The autoconf build was deleted some time ago. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278133 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 17 addition(s) and 46 deletion(s). Raw diff Collapse all Expand all
3737 do_openmp="yes"
3838 do_lldb="no"
3939 BuildDir="`pwd`"
40 use_autoconf="no"
4140 ExtraConfigureFlags=""
4241 ExportBranch=""
4342
5655 echo " -no-compare-files Don't test that phase 2 and 3 files are identical."
5756 echo " -use-gzip Use gzip instead of xz."
5857 echo " -configure-flags FLAGS Extra flags to pass to the configure step."
59 echo " -use-autoconf Use autoconf instead of cmake"
6058 echo " -svn-path DIR Use the specified DIR instead of a release."
6159 echo " For example -svn-path trunk or -svn-path branches/release_37"
6260 echo " -no-rt Disable check-out & build Compiler-RT"
126124 -use-gzip | --use-gzip )
127125 use_gzip="yes"
128126 ;;
129 -use-autoconf | --use-autoconf )
130 use_autoconf="yes"
131 ;;
132127 -no-rt )
133128 do_rt="no"
134129 ;;
163158 shift
164159 done
165160
166 if [ "$use_autoconf" = "no" ]; then
167 if [ "$do_test_suite" = "yes" ]; then
168 # See llvm.org/PR26146.
169 echo Skipping test-suite build when using CMake.
170 echo It will still be exported.
171 do_test_suite="export-only"
172 fi
161 if [ "$do_test_suite" = "yes" ]; then
162 # See llvm.org/PR26146.
163 echo Skipping test-suite build when using CMake.
164 echo It will still be exported.
165 do_test_suite="export-only"
173166 fi
174167
175168 # Check required arguments.
336329 Release )
337330 BuildType="Release"
338331 Assertions="OFF"
339 ConfigureFlags="--enable-optimized --disable-assertions"
340332 ;;
341333 Release+Asserts )
342334 BuildType="Release"
343335 Assertions="ON"
344 ConfigureFlags="--enable-optimized --enable-assertions"
345336 ;;
346337 Debug )
347338 BuildType="Debug"
348339 Assertions="ON"
349 ConfigureFlags="--disable-optimized --enable-assertions"
350340 ;;
351341 * )
352342 echo "# Invalid flavor '$Flavor'"
361351 cd $ObjDir
362352 echo "# Configuring llvm $Release-$RC $Flavor"
363353
364 if [ "$use_autoconf" = "yes" ]; then
365 echo "#" env CC="$c_compiler" CXX="$cxx_compiler" \
366 $BuildDir/llvm.src/configure \
367 $ConfigureFlags --disable-timestamps $ExtraConfigureFlags \
368 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
369 env CC="$c_compiler" CXX="$cxx_compiler" \
370 $BuildDir/llvm.src/configure \
371 $ConfigureFlags --disable-timestamps $ExtraConfigureFlags \
372 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
373 else
374 echo "#" env CC="$c_compiler" CXX="$cxx_compiler" \
375 cmake -G "Unix Makefiles" \
376 -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \
377 -DLLVM_CONFIGTIME="(timestamp not enabled)" \
378 $ExtraConfigureFlags $BuildDir/llvm.src \
379 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
380 env CC="$c_compiler" CXX="$cxx_compiler" \
381 cmake -G "Unix Makefiles" \
382 -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \
383 -DLLVM_CONFIGTIME="(timestamp not enabled)" \
384 $ExtraConfigureFlags $BuildDir/llvm.src \
385 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
386 fi
354 echo "#" env CC="$c_compiler" CXX="$cxx_compiler" \
355 cmake -G "Unix Makefiles" \
356 -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \
357 -DLLVM_CONFIGTIME="(timestamp not enabled)" \
358 $ExtraConfigureFlags $BuildDir/llvm.src \
359 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
360 env CC="$c_compiler" CXX="$cxx_compiler" \
361 cmake -G "Unix Makefiles" \
362 -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \
363 -DLLVM_CONFIGTIME="(timestamp not enabled)" \
364 $ExtraConfigureFlags $BuildDir/llvm.src \
365 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
387366
388367 cd $BuildDir
389368 }
417396 if ! ( ${MAKE} -j $NumJobs -k check-all \
418397 2>&1 | tee $LogDir/llvm.check-Phase$Phase-$Flavor.log ) ; then
419398 deferred_error $Phase $Flavor "check-all failed"
420 fi
421
422 if [ "$use_autoconf" = "yes" ]; then
423 # In the cmake build, unit tests are run as part of check-all.
424 if ! ( ${MAKE} -k unittests 2>&1 | \
425 tee $LogDir/llvm.unittests-Phase$Phase-$Flavor.log ) ; then
426 deferred_error $Phase $Flavor "unittests failed"
427 fi
428399 fi
429400
430401 cd $BuildDir