Skip to content

Commit

Permalink
Don't allow cross compile without toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning authored and bstaletic committed Apr 13, 2024
1 parent 128f5cc commit 8a4b8e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package_llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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( [
Expand Down

0 comments on commit 8a4b8e6

Please sign in to comment.