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