Update debug CFLAGS and LFLAGS to match Makefile.common
@@ -46,7 +46,7 @@ export default async (
}
if (profile) {
- CFLAGS += " -Wf--debug";
+ CFLAGS += " -Wf--debug -Wl-y";
}
if (targetPlatform === "pocket") {
@@ -155,7 +155,14 @@ export const getBuildCommands = async (
}
if (profile) {
- buildArgs.push("-Wf--profile");
+ buildArgs.push("-Wf--fverbose-asm");
+ buildArgs.push("-Wf--debug");
+ buildArgs.push("-Wl-m");
+ buildArgs.push("-Wl-w");
+ buildArgs.push("-Wl-y");
+ buildArgs.push("-DVM_DEBUG_OUTPUT");
+ buildArgs.push("-Wf--nolospre");
+ buildArgs.push("-Wf--nogcse");
}
if (targetPlatform === "pocket") {
@@ -272,7 +279,7 @@ export const buildLinkFlags = (
// Pocket
targetPlatform === "pocket" ? ["-mgbz80:ap"] : [],
// Debug emulicious
- profile ? ["-Wf--debug", "-Wl-y",] : [],
+ profile ? ["-Wf--debug", "-Wl-m", "-Wl-w", "-Wl-y"] : [],
// Music Driver
musicDriver === "huge"
? // hugetracker
