From 42398f4c346dff25abcad169566a654d12981558 Mon Sep 17 00:00:00 2001 From: Xingwei Zhu Date: Thu, 1 Jul 2021 11:03:55 +0800 Subject: [PATCH] delete SDKROOT in the env if any --- engine/Scripts/lib_build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/Scripts/lib_build.py b/engine/Scripts/lib_build.py index c514be64..035d3506 100644 --- a/engine/Scripts/lib_build.py +++ b/engine/Scripts/lib_build.py @@ -272,6 +272,10 @@ def build_engine(): global bitcode dest_folder="" + #delete SDKRoot env if any. It may conflict with the real sysroot path generated by Bee + if 'SDKROOT' in os.environ: + del os.environ['SDKROOT'] + print("\nStarting build engine...") if platform == "windows": dest_folder = "x86_64"