@@ -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