mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 884473: puts a warning message when compiled with --enable-perf and no env variable is given; r=sstangl
This commit is contained in:
parent
19de02b18b
commit
f9704ccb5a
@ -35,6 +35,8 @@ js::ion::CheckPerf() {
|
||||
const char *env = getenv("IONPERF");
|
||||
if (env == NULL) {
|
||||
PerfMode = PERF_MODE_NONE;
|
||||
fprintf(stderr, "Warning: JIT perf reporting requires IONPERF set to \"block\" or \"func\". ");
|
||||
fprintf(stderr, "Perf mapping will be deactivated.\n");
|
||||
} else if (!strcmp(env, "none")) {
|
||||
PerfMode = PERF_MODE_NONE;
|
||||
} else if (!strcmp(env, "block")) {
|
||||
|
Loading…
Reference in New Issue
Block a user