Commit fdeffa5e authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

rts: Error on invalid --numa flags

Previously things like `+RTS --numa-debug` would enable NUMA support,
despite being an invalid flag.
parent 613f7265
......@@ -949,9 +949,14 @@ error = true;
if (rts_argv[arg][6] == '=') {
mask = (StgWord)strtol(rts_argv[arg]+7,
(char **) NULL, 10);
} else {
} else if (rts_argv[arg][6] == '\0'){
mask = (StgWord)~0;
} else {
errorBelch("%s: unknown flag", rts_argv[arg]);
error = true;
break;
}
if (!osNumaAvailable()) {
errorBelch("%s: OS reports NUMA is not available",
rts_argv[arg]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment