Fix wrong compiler path issue when using external sysroots (#109)
Signed-off-by: Hidenori Matsubayashi <hidenori.matsubayashi@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f6cb5b3728
commit
f50c49d31a
@@ -375,11 +375,10 @@ class NativeBundle {
|
||||
if (targetCompilerFlags != null) '-DCMAKE_C_FLAGS=$targetCompilerFlags',
|
||||
if (targetCompilerFlags != null)
|
||||
'-DCMAKE_CXX_FLAGS=$targetCompilerFlags',
|
||||
'-DCMAKE_C_COMPILER=clang',
|
||||
'-DCMAKE_CXX_COMPILER=clang++',
|
||||
eLinuxDir.path,
|
||||
],
|
||||
workingDirectory: outputDir.path,
|
||||
environment: <String, String>{'CC': 'clang', 'CXX': 'clang++'},
|
||||
);
|
||||
if (result.exitCode != 0) {
|
||||
throwToolExit('Failed to cmake:\n$result');
|
||||
|
||||
Reference in New Issue
Block a user