Update umake.cpp (#176)

This commit is contained in:
Zbigniew Rębacz 2023-11-30 08:27:53 +01:00 committed by GitHub
parent d6c2c3e9d3
commit a303da4e1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,7 @@ CONSOLE_APP_MAIN
int exporting = 0;
bool run = false;
bool auto_hub = false;
bool flatpak_build = !GetEnv("FLATPAK_ID").IsEmpty();
String mkf;
Vector<String> param, runargs;
@ -205,6 +206,9 @@ CONSOLE_APP_MAIN
SetVar("UPP", x, false);
PutVerbose("Inline assembly: " + x);
String outdir = GetDefaultUppOut();
if (flatpak_build) {
outdir = GetExeFolder() + DIR_SEPS + ".cache" + DIR_SEPS + "upp.out";
}
RealizeDirectory(outdir);
SetVar("OUTPUT", outdir, false);
}