Skip to content

Commit 4f24ce5

Browse files
Merge pull request #679 from screamerbg/f/builddir-upcase
Fix build directories name casing
2 parents db5bf16 + 57cb0c0 commit 4f24ce5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mbed/mbed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
24932493
if compile_library:
24942494
# Compile as a library (current dir is default)
24952495
if not build_path:
2496-
build_path = os.path.join(os.path.relpath(program.path, orig_path), program.build_dir, 'libraries', os.path.basename(orig_path), target, tchain)
2496+
build_path = os.path.join(os.path.relpath(program.path, orig_path), program.build_dir, 'libraries', os.path.basename(orig_path), target.upper(), tchain.upper())
24972497

24982498
popen([python_cmd, '-u', os.path.join(tools_dir, 'build.py')]
24992499
+ list(chain.from_iterable(zip(repeat('-D'), macros)))
@@ -2509,7 +2509,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
25092509
else:
25102510
# Compile as application (root is default)
25112511
if not build_path:
2512-
build_path = os.path.join(os.path.relpath(program.path, orig_path), program.build_dir, target, tchain)
2512+
build_path = os.path.join(os.path.relpath(program.path, orig_path), program.build_dir, target.upper(), tchain.upper())
25132513

25142514
popen([python_cmd, '-u', os.path.join(tools_dir, 'make.py')]
25152515
+ list(chain.from_iterable(zip(repeat('-D'), macros)))
@@ -2591,7 +2591,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
25912591
# Setup the build path if not specified
25922592
build_path = build
25932593
if not build_path:
2594-
build_path = os.path.join(program.path, program.build_dir, 'tests', target, tchain)
2594+
build_path = os.path.join(program.path, program.build_dir, 'tests', target.upper(), tchain.upper())
25952595

25962596
if test_spec:
25972597
# Preserve path to given test spec

0 commit comments

Comments
 (0)