mirror of https://github.com/ARMmbed/mbed-os.git
Restore original compile sources routine
parent
41daccf8d9
commit
99ed4e03f1
|
@ -236,8 +236,10 @@ def build_project(src_path, build_path, target, toolchain_name,
|
|||
toolchain.add_macros(config.get_config_data_macros())
|
||||
|
||||
# Compile Sources
|
||||
objects = toolchain.compile_sources(resources, build_path, resources.inc_dirs)
|
||||
resources.objects.extend(objects)
|
||||
for path in src_paths:
|
||||
src = toolchain.scan_resources(path)
|
||||
objects = toolchain.compile_sources(src, build_path, resources.inc_dirs)
|
||||
resources.objects.extend(objects)
|
||||
|
||||
# Link Program
|
||||
res, _ = toolchain.link_program(resources, build_path, name)
|
||||
|
@ -402,8 +404,10 @@ def build_library(src_paths, build_path, target, toolchain_name,
|
|||
toolchain.add_macros(config.get_config_data_macros())
|
||||
|
||||
# Compile Sources
|
||||
objects = toolchain.compile_sources(resources, build_path, resources.inc_dirs)
|
||||
resources.objects.extend(objects)
|
||||
for path in src_paths:
|
||||
src = toolchain.scan_resources(path)
|
||||
objects = toolchain.compile_sources(src, abspath(tmp_path), resources.inc_dirs)
|
||||
resources.objects.extend(objects)
|
||||
|
||||
if archive:
|
||||
toolchain.build_library(objects, build_path, name)
|
||||
|
|
Loading…
Reference in New Issue