Skip to content
Snippets Groups Projects
Commit ccf35b81 authored by Ben Gamari's avatar Ben Gamari
Browse files

rts: Error on invalid --numa flags

Previously things like `+RTS --numa-debug` would enable NUMA support,
despite being an invalid flag.
parent 615bad26
No related branches found
No related tags found
No related merge requests found
......@@ -944,9 +944,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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment