AndreaOrru / zen

Experimental operating system written in Zig
BSD 3-Clause "New" or "Revised" License
443 stars 27 forks source link

build: add standard release options and qemu step #9

Closed andrewrk closed 7 years ago

andrewrk commented 7 years ago

Now you can do, for example:

$ zig build qemu

Or:

$ zig build qemu-debug -Drelease-fast

Full help menu:

$ zig build --help
Usage: /home/andy/dev/zig/build/zig build [steps] [options]

Steps:
  default                Build the project
  qemu                   Run the kernel with qemu
  qemu-debug             Run the kernel with qemu and wait for debugger to attach

General Options:
  --help                 Print this help and exit
  --build-file [file]    Override path to build.zig
  --cache-dir [path]     Override path to cache directory
  --verbose              Print commands before executing them
  --debug-build-verbose  Print verbose debugging information for the build system itself
  --prefix [prefix]      Override default install prefix

Project-Specific Options:
  -Drelease-safe=(bool)  optimizations on and safety on
  -Drelease-fast=(bool)  optimizations on and safety off