mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fixed an issue when PlatformIO archives a library that does not contain C/C++ source files // Resolve #4019
This commit is contained in:
@ -35,6 +35,7 @@ PlatformIO Core 5
|
||||
|
||||
- Upgraded build engine to the SCons 4.2 (`release notes <https://github.com/SCons/scons/blob/rel_4.2.0/CHANGES.txt>`__)
|
||||
- Fixed an issue with broken binary file extension when a custom ``PROGNAME`` contains dot symbols (`issue #3906 <https://github.com/platformio/platformio-core/issues/3906>`_)
|
||||
- Fixed an issue when PlatformIO archives a library that does not contain C/C++ source files (`issue #4019 <https://github.com/platformio/platformio-core/issues/4019>`_)
|
||||
|
||||
* **Static Code Analysis**
|
||||
|
||||
|
@ -348,9 +348,10 @@ def BuildFrameworks(env, frameworks):
|
||||
|
||||
def BuildLibrary(env, variant_dir, src_dir, src_filter=None):
|
||||
env.ProcessUnFlags(env.get("BUILD_UNFLAGS"))
|
||||
return env.StaticLibrary(
|
||||
env.subst(variant_dir), env.CollectBuildFiles(variant_dir, src_dir, src_filter)
|
||||
)
|
||||
nodes = env.CollectBuildFiles(variant_dir, src_dir, src_filter)
|
||||
if nodes:
|
||||
return env.StaticLibrary(env.subst(variant_dir), nodes)
|
||||
return env.BuildSources(variant_dir, src_dir, src_filter)
|
||||
|
||||
|
||||
def BuildSources(env, variant_dir, src_dir, src_filter=None):
|
||||
|
Reference in New Issue
Block a user