Skip to content

Commit 8ab9256

Browse files
rhapsodyvvgadreau
authored andcommitted
Apply lib_ignore from [features] (MarlinFirmware#18762)
1 parent e66f2b3 commit 8ab9256

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

buildroot/share/PlatformIO/scripts/common-features-dependencies.py

+6
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ def install_features_dependencies():
123123
proj.set("env:" + env["PIOENV"], "src_filter", [src_filter])
124124
env.Replace(SRC_FILTER=src_filter)
125125

126+
if 'lib_ignore' in FEATURE_DEPENDENCIES[feature]:
127+
print("Ignoring libs for %s... " % feature)
128+
lib_ignore = env.GetProjectOption("lib_ignore") + [FEATURE_DEPENDENCIES[feature]['lib_ignore']]
129+
proj = env.GetProjectConfig()
130+
proj.set("env:" + env["PIOENV"], "lib_ignore", lib_ignore)
131+
126132
# search the current compiler, considering the OS
127133
def search_compiler():
128134
if env['PLATFORM'] == 'win32':

0 commit comments

Comments
 (0)