diff --git a/package_llvm.py b/package_llvm.py index a3f8803..39525eb 100755 --- a/package_llvm.py +++ b/package_llvm.py @@ -243,6 +243,13 @@ def BuildLlvm( build_dir, if os.path.exists( toolchain_file ): cmake_configure_args.append( '-DCMAKE_TOOLCHAIN_FILE={}'.format( toolchain_file ) ) + else: + print( "WARNING: Cross compiling, but no toolchain file found for " + + toolchain_file ) + sys.exit( 1 ) + + print( 'CMake Args: {}'.format( ' '.join( cmake_configure_args ) ) ) + subprocess.check_call( cmake_configure_args ) subprocess.check_call( [