Use GetBuildType for detecting debug mode
This commit is contained in:
@@ -556,11 +556,8 @@ def generate_project_ld_script(sdk_config, ignore_targets=None):
|
||||
def prepare_build_envs(config, default_env):
|
||||
build_envs = []
|
||||
target_compile_groups = config.get("compileGroups")
|
||||
is_build_type_debug = (
|
||||
set(["__debug", "sizedata"]) & set(COMMAND_LINE_TARGETS)
|
||||
or default_env.GetProjectOption("build_type") == "debug"
|
||||
)
|
||||
|
||||
is_build_type_debug = "debug" in env.GetBuildType()
|
||||
for cg in target_compile_groups:
|
||||
includes = []
|
||||
sys_includes = []
|
||||
|
||||
Reference in New Issue
Block a user