1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-30 19:07:11 -07:00

fix quirks with specifying msvc

This commit is contained in:
Connor Olding 2017-05-17 21:26:57 +00:00
parent 79366bed63
commit 8243f9be77

View File

@ -88,7 +88,7 @@ compile() {
echo -n "usage: compile [" >&2 echo -n "usage: compile [" >&2
[ -n "$clang" ] && print_separated "clang" [ -n "$clang" ] && print_separated "clang"
[ -n "$gcc" ] && print_separated "gcc" [ -n "$gcc" ] && print_separated "gcc"
[ -n "$cl" ] && print_separated "cl" [ -n "$cl" ] && print_separated "msvc"
echo "] [debug|derelease|release|hardened] [flags...] {source file}" >&2 echo "] [debug|derelease|release|hardened] [flags...] {source file}" >&2
return 1 return 1
fi fi
@ -115,7 +115,7 @@ compile() {
if [ $CC = cl ]; then if [ $CC = cl ]; then
our_flags+=(-nologo -utf-8) our_flags+=(-nologo -utf-8)
local debug_flags=(-Od -Zi -ZI -sdl); local debug_flags=(-Od -ZI -sdl);
local release_flags=(-Ox) local release_flags=(-Ox)
local dr_flags=(-Ox -Zi) local dr_flags=(-Ox -Zi)
local hardened_flags=(-Ox -sdl) local hardened_flags=(-Ox -sdl)