summaryrefslogtreecommitdiff
path: root/mbld/deps.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-10-05 18:23:28 -0700
committerOri Bernstein <ori@markovcorp.com>2017-10-05 18:23:28 -0700
commitccc18d6ab171efa2a512f3c79c535a27b5baec7f (patch)
treed1213aafa4c6723bbf47724773de532d56a025ee /mbld/deps.myr
parent0cf1870f4b5a8a547ce1334e6e83cc0275b94774 (diff)
downloadmc-ccc18d6ab171efa2a512f3c79c535a27b5baec7f.tar.gz
Allow passing some flags to the build.
Diffstat (limited to 'mbld/deps.myr')
-rw-r--r--mbld/deps.myr9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 2783dee..fa894f4 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -402,6 +402,9 @@ const checkloop = {g, n, visited, looped, stk
const musecmd = {b, n, mt, mu
std.slpush(&n.cmd, std.sldup(opt_muse))
+ for o : opt_museflags
+ std.slpush(&n.cmd, o)
+ ;;
std.slpush(&n.cmd, std.sldup("-o"))
std.slpush(&n.cmd, std.sldup(mu))
std.slpush(&n.cmd, std.sldup("-p"))
@@ -425,6 +428,9 @@ const linkcmd = {b, n, mt, bin, libs, dynlibs, istest
for c : config.Linkcmd
std.slpush(&n.cmd, std.sldup(c))
;;
+ for o : opt_ldflags
+ std.slpush(&n.cmd, o)
+ ;;
std.slpush(&n.cmd, std.sldup(bin))
if mt.ldscript.len > 0
std.slpush(&n.cmd, std.sldup("-T"))
@@ -459,6 +465,9 @@ const linkcmd = {b, n, mt, bin, libs, dynlibs, istest
const myrcmd = {b, n, mt, src, istest
std.slpush(&n.cmd, std.sldup(opt_mc))
+ for o : opt_mcflags
+ std.slpush(&n.cmd, o)
+ ;;
if opt_objdir.len > 0
pushopt(&n.cmd, "-O", std.sldup(opt_objdir))
;;