Skip to content

Commit

Permalink
build fix powershell quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Oct 31, 2022
1 parent a2d7a72 commit aadfe00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v8_compile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ $os = "Windows"
$cores = ( Get-CimInstance -ClassName Win32_Processor ).NumberOfLogicalProcessors

$gnArgs = Get-Content "$PSScriptRoot\args\$os.gn" | `
Where-Object { -not ( [String]::IsNullOrEmpty($_.Trim()) -or ( $_ -match "^#" ) ) }
Where-Object { -not ( [String]::IsNullOrEmpty($_.Trim()) -or ( $_ -match "^#" ) ) } | `
Foreach-Object { $_ -replace '"','""' } # keep quotes in string

$ccWrapper = ""

Expand All @@ -21,7 +22,7 @@ if ( Get-Command -Name sccache ) {
}

$gnArgs += @"
cc_wrapper="$ccWrapper"
cc_wrapper=""$ccWrapper""
"@

Set-Location "$PSScriptRoot\v8"
Expand Down

0 comments on commit aadfe00

Please sign in to comment.