From f50c49d31a080dfb708eaba7e32e0b38e41f802d Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Thu, 11 Aug 2022 22:41:04 +0900 Subject: [PATCH] Fix wrong compiler path issue when using external sysroots (#109) Signed-off-by: Hidenori Matsubayashi --- lib/elinux_build_target.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/elinux_build_target.dart b/lib/elinux_build_target.dart index 2c89532..bde35b2 100644 --- a/lib/elinux_build_target.dart +++ b/lib/elinux_build_target.dart @@ -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: {'CC': 'clang', 'CXX': 'clang++'}, ); if (result.exitCode != 0) { throwToolExit('Failed to cmake:\n$result');