Skip to content

Commit e7923e0

Browse files
Create "DEFAULT" build subdir if neither build dir nor build profile are specified.
1 parent 87e203b commit e7923e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mbed/mbed.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2498,14 +2498,15 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
24982498
build_path = build
24992499

25002500
def safe_append_profile_to_build_path(bp):
2501+
append_str = 'DEFAULT'
2502+
25012503
if profile:
25022504
if isinstance(profile, basestring):
25032505
append_str = profile
25042506
else:
25052507
append_str = profile[0]
25062508

2507-
if append_str:
2508-
bp = os.path.join(bp, os.path.splitext(os.path.basename(append_str))[0].upper())
2509+
bp = os.path.join(bp, os.path.splitext(os.path.basename(append_str))[0].upper())
25092510

25102511
return bp
25112512

0 commit comments

Comments
 (0)