Use the standardTargetOptions for built targets

This will allow the user to build the OS with more fine grain, but there is a white list of supported build targets.
Closes #129

Updated the README to reflect the new build options


x86 => i386
This commit is contained in:
DrDeano 2020-06-22 20:18:19 +01:00
parent 10bf2439d9
commit 1b32fd309b
No known key found for this signature in database
GPG key ID: 96188600582B9ED7
2 changed files with 8 additions and 9 deletions

View file

@ -28,7 +28,9 @@ zig build
```Shell
zig build run
```
or if you want to wait for a gdb connection:
```Shell
zig build debug-run
```
@ -68,9 +70,8 @@ Available test modes:
* `-D[build-mode]=`: Boolean (default `false`).
* **build**: Build a certain build mode (*release-safe*, *release-fast*, *release-small*). Don't set in order to use the *debug* build mode.
* **test**: Test a certain build mode (*release-safe*, *release-fast*, *release-small*). Don't set in order to use the *debug* build mode.
* `-Darch=`: String (default `x86`). Currently the only supported value is `x86`.
* **build**: Build for a certain architecture.
* **test**: Test a certain architecture.
* `-Dtarget=`: String (default `i386-freestanding`). The standard target options for building with zig. Currently supported targets:
* `i386-freestanding`
* `-Ddisable-display`: Boolean (default `false`)
* This disables the display output of QEMU.