Browse Source

A temporary hack to deal with a bug in MSVC v142 - VS 2019 build tools

pull/1513/head
josetr 5 years ago committed by João Matos
parent
commit
a8595fc281
  1. 5
      .github/workflows/llvm.yml
  2. 5
      .github/workflows/main.yml
  3. 8
      build/intrin.ps1

5
.github/workflows/llvm.yml

@ -40,6 +40,11 @@ jobs: @@ -40,6 +40,11 @@ jobs:
)
endlocal
- name: Fix intrin.h file
if: matrix.config.vs > 0
shell: powershell
run: build/intrin.ps1
- name: Clone LLVM
shell: bash
run: build/premake.sh --file=build/scripts/LLVM.lua clone_llvm

5
.github/workflows/main.yml

@ -30,6 +30,11 @@ jobs: @@ -30,6 +30,11 @@ jobs:
shell: bash
run: echo "/c/Program Files (x86)/Microsoft Visual Studio/$VS_VERSION/Enterprise/MSBuild/Current/Bin" >> $GITHUB_PATH
- name: Fix intrin.h file
if: matrix.config.vs > 0
shell: powershell
run: build/intrin.ps1
- name: Setup
shell: bash
run: build/Setup.sh

8
build/intrin.ps1

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