mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Init defaults $objtype to $cputype.
This commit is contained in:
parent
8f3fd73bd6
commit
66b8d23713
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <error.h>
|
#include <error.h>
|
||||||
|
@ -70,6 +71,10 @@ int main(int argc, char* argv[])
|
||||||
printf("\r\e[m\e[J");
|
printf("\r\e[m\e[J");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
|
// By default, compile to the same architecture that the kernel told us that
|
||||||
|
// we are running.
|
||||||
|
setenv("objtype", getenv("cputype"), 0);
|
||||||
|
|
||||||
return runsystem();
|
return runsystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue