Skip to content

Commit

Permalink
Apply lib_ignore from [features] (MarlinFirmware#18762)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and albertogg committed Aug 31, 2020
1 parent 4b2a31d commit 537e4b7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ def install_features_dependencies():
proj.set("env:" + env["PIOENV"], "src_filter", [src_filter])
env.Replace(SRC_FILTER=src_filter)

if 'lib_ignore' in FEATURE_DEPENDENCIES[feature]:
print("Ignoring libs for %s... " % feature)
lib_ignore = env.GetProjectOption("lib_ignore") + [FEATURE_DEPENDENCIES[feature]['lib_ignore']]
proj = env.GetProjectConfig()
proj.set("env:" + env["PIOENV"], "lib_ignore", lib_ignore)

# search the current compiler, considering the OS
def search_compiler():
if env['PLATFORM'] == 'win32':
Expand Down

0 comments on commit 537e4b7

Please sign in to comment.