Make libs and includes work
This commit is contained in:
parent
47165af14c
commit
45a6622cb1
1 changed files with 6 additions and 2 deletions
|
|
@ -107,6 +107,10 @@ proc buildElf(buildInfo: BuildInfo): string =
|
||||||
args &= " -d:release"
|
args &= " -d:release"
|
||||||
if buildInfo.force:
|
if buildInfo.force:
|
||||||
args &= " -f"
|
args &= " -f"
|
||||||
|
if buildInfo.libs != "":
|
||||||
|
args &= " --passL='" & buildInfo.libs & "'"
|
||||||
|
if buildInfo.includes != "":
|
||||||
|
args &= " --passC='" & buildInfo.includes & "'"
|
||||||
|
|
||||||
cmd = cmd % ["args", args]
|
cmd = cmd % ["args", args]
|
||||||
|
|
||||||
|
|
@ -325,8 +329,8 @@ proc processArgs() =
|
||||||
buildInfo.toolsPath = buildInfo.dkpPath / "tools/bin"
|
buildInfo.toolsPath = buildInfo.dkpPath / "tools/bin"
|
||||||
|
|
||||||
|
|
||||||
putEnv("SWITCHLIBS", getEnv("SWITCHLIBS") & " " & buildInfo.libs)
|
putEnv("SWITCH_LIBS", getEnv("SWITCH_LIBS") & " " & buildInfo.libs)
|
||||||
putEnv("SWITCHINCLUDES", getEnv("SWITCHINCLUDES") & " " & buildInfo.includes)
|
putEnv("SWITCH_INCLUDES", getEnv("SWITCH_INCLUDES") & " " & buildInfo.includes)
|
||||||
|
|
||||||
echo "Building: $#..." % buildInfo.filename
|
echo "Building: $#..." % buildInfo.filename
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue