Skip to content

Commit 4d700f0

Browse files
authored
simplify check for existing env "BUILD_UNFLAGS"
1 parent f7e09de commit 4d700f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builder/frameworks/arduino.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,7 @@ def has_unicore_flags():
599599

600600
# Esp32-solo1 libs settings
601601
if flag_custom_sdkconfig and has_unicore_flags():
602-
build_unflags = env.GetProjectOption("build_unflags")
603-
if not build_unflags: # not existing needs init
602+
if not env.get('BUILD_UNFLAGS'): # Initialize if not set
604603
env['BUILD_UNFLAGS'] = []
605604

606605
build_unflags = " ".join(env['BUILD_UNFLAGS']) + " -mdisable-hardware-atomics -ustart_app_other_cores"

0 commit comments

Comments
 (0)