.
This commit is contained in:
parent
cb519e8585
commit
b9284e7bf8
1 changed files with 3 additions and 3 deletions
6
do.ps1
6
do.ps1
|
|
@ -101,7 +101,7 @@ New-Item -ItemType Directory -Force -Path $OUT_DIR | Out-Null;
|
|||
|
||||
# ...............
|
||||
|
||||
function Get-Flags($os, $release) {
|
||||
function GetFlags($os, $release) {
|
||||
$flags = $C_FLAGS;
|
||||
switch ($os) {
|
||||
"windows" {
|
||||
|
|
@ -128,7 +128,7 @@ function Get-Flags($os, $release) {
|
|||
return $flags;
|
||||
}
|
||||
|
||||
function Get-Source($os) {
|
||||
function GetSource($os) {
|
||||
$source = $C_SOURCE;
|
||||
switch ($os) {
|
||||
"macos" {
|
||||
|
|
@ -152,7 +152,7 @@ function Get-Source($os) {
|
|||
}
|
||||
|
||||
function CompileCommand($target_os, $release) {
|
||||
return "$ZIG cc $(Get-Flags $target_os $release) $(Get-Source $target_os)";
|
||||
return "$ZIG cc $(GetFlags $target_os $release) $(GetSource $target_os)";
|
||||
}
|
||||
|
||||
# ..............
|
||||
|
|
|
|||
Loading…
Reference in a new issue