Browse Source

Delete the longer needed patching of msvc headers

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1623/head
Dimitar Dobrev 4 years ago
parent
commit
5c8e598775
  1. 5
      .github/workflows/llvm-win.yml
  2. 16
      build/intrin.ps1

5
.github/workflows/llvm-win.yml

@ -44,11 +44,6 @@ jobs: @@ -44,11 +44,6 @@ jobs:
)
endlocal
- name: Fix intrin.h file
shell: powershell
run: build/intrin.ps1
working-directory: C:\CppSharp
- name: Clone LLVM
shell: bash
run: build/build.sh clone_llvm

16
build/intrin.ps1

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
$intrin = @(
'C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.28.29333/include/intrin0.h',
'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/include/intrin0.h',
'C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/include/intrin0.h')
$patched = $false
for ($i = 0; $i -lt $intrin.Length; $i++) {
if (Test-Path $intrin[$i]) {
$content = ((Get-Content $intrin[$i]) -replace 'ifdef __clang__', 'ifdef __avoid_this_path__')
[IO.File]::WriteAllLines($intrin[$i], $content)
$patched = $true
}
}
if (!$patched) {
Write-Warning "This hack is no longer needed and should be removed."
}
Loading…
Cancel
Save