mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
419 B
11 lines
419 B
$driver = 'C:\CppSharp\build\llvm\llvm-project\lld\COFF\Driver.cpp' |
|
$patched = $false |
|
if (Test-Path $driver) { |
|
$content = ((Get-Content $driver) -replace 'static void createImportLibrary(bool asLib) {', 'static void createImportLibrary(bool asLib) { return;') |
|
[IO.File]::WriteAllLines($driver, $content) |
|
$patched = $true |
|
} |
|
|
|
if (!$patched) { |
|
Write-Warning "This hack is no longer needed and should be removed." |
|
}
|
|
|