Skip to content

Commit 182ff5a

Browse files
theotherjimmyadbridge
authored andcommitted
Make the debug profile the default used for exporting
1 parent b80c375 commit 182ff5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def list_profiles():
100100
"""
101101
return [fn.replace(".json", "") for fn in listdir(join(dirname(__file__), "profiles")) if fn.endswith(".json")]
102102

103-
def extract_profile(parser, options, toolchain):
103+
def extract_profile(parser, options, toolchain, fallback="default"):
104104
"""Extract a Toolchain profile from parsed options
105105
106106
Positional arguments:
@@ -110,7 +110,7 @@ def extract_profile(parser, options, toolchain):
110110
"""
111111
profile = {'c': [], 'cxx': [], 'ld': [], 'common': [], 'asm': []}
112112
filenames = options.profile or [join(dirname(__file__), "profiles",
113-
"default.json")]
113+
fallback + ".json")]
114114
for filename in filenames:
115115
contents = load(open(filename))
116116
try:

tools/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def main():
235235
exporter, toolchain_name = get_exporter_toolchain(options.ide)
236236
if options.mcu not in exporter.TARGETS:
237237
args_error(parser, "%s not supported by %s"%(options.mcu,options.ide))
238-
profile = extract_profile(parser, options, toolchain_name)
238+
profile = extract_profile(parser, options, toolchain_name, fallback="debug")
239239
if options.clean:
240240
rmtree(BUILD_DIR)
241241
export(options.mcu, options.ide, build=options.build,

0 commit comments

Comments
 (0)