1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 04:29:03 -08:00

restore old examples for compile function

This commit is contained in:
Connor Olding 2021-08-01 08:23:00 -07:00
parent 2c1220e6d1
commit 7aeda2d105

View file

@ -59,6 +59,30 @@ compile() { ### @-
### `compile` attempts to guess the most sane switches for any program, so that compilation may reduce to:
###
### **TODO:** restore examples.
###
### ```sh
### # debug build
### compile rd.c
### compile debug rd.c
### # debug build with warning/error flags defined in .-shrc
### # (requires .zshrc for global alias expansion)
### compile WHOA rd.c
### # likewise for C++
### compile WHOA WELP rd.cc
### compile WHOA WELP rd.cpp
### # "derelease" build (release build with debug information)
### compile derelease WHOA rd.c
### # release build (with symbols stripped)
### compile release WHOA rd.c
### # hardened build (only useful on *nix)
### compile hardened WHOA rd.c
### # specifying compiler
### compile gcc WHOA rd.c
### compile msvc WHOA rd.c
### compile release clang WHOA rd.c
### # compile and execute (FIXME: writing to /tmp is a security concern)
### compile derelease rd.c && /tmp/rd
### ```
# FIXME: compile gcc portrend.c -lsdl
# this causes mayhem!