diff --git a/HISTORY.rst b/HISTORY.rst index 15c4acd1..09c130dc 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,11 +13,12 @@ PlatformIO 3.0 * Introduced `"Release" and "Debug" Build Configurations `__ * Build project in "Debug Mode" including debug information with a new ``debug`` target using `platformio run `__ command or `targets `__ option in ``platformio.ini``. The last option allows to avoid project rebuilding between "Run/Debug" modes. (`issue #1833 `_) -* Do not re-create ".gitignore" and ".travis.yml" files if they were removed from a project +* Process ``build_unflags`` for cloned environment when building a static library * Report about outdated `99-platformio-udev.rules `__ (`issue #1823 `_) * Show a valid error when Internet is off-line while initializing a new project (`issue #1784 `_) +* Do not re-create ".gitignore" and ".travis.yml" files if they were removed from a project * Fixed an issue when dynamic build flags were not handled correctly (`issue #1799 `_) * Fixed an issue when ``pio run -t monitor`` always uses first ``monitor_port`` even with multiple environments diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index 41efe79b..321e8ea1 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -324,6 +324,7 @@ 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))