Browse Source

Apply lib_ignore from [features] (#18762)

Victor Oliveira 3 years ago
parent
commit
8c88c33d9f
No account linked to committer's email address

+ 6
- 0
buildroot/share/PlatformIO/scripts/common-features-dependencies.py View File

@@ -123,6 +123,12 @@ def install_features_dependencies():
123 123
 			proj.set("env:" + env["PIOENV"], "src_filter", [src_filter])
124 124
 			env.Replace(SRC_FILTER=src_filter)
125 125
 
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
+
126 132
 # search the current compiler, considering the OS
127 133
 def search_compiler():
128 134
 	if env['PLATFORM'] == 'win32':

Loading…
Cancel
Save