Skip to content

Commit

Permalink
Drop LLVM 5.0 compatibility patch.
Browse files Browse the repository at this point in the history
It is now upstream in all active branches.
  • Loading branch information
pal1000 committed Oct 2, 2017
1 parent 6cc4e11 commit 4a48bda
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
1 change: 0 additions & 1 deletion buildscript/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
@set branch=%mesaver:~0,4%
@if EXIST mesapatched.ini GOTO build_mesa
@if %prepfail%==1 GOTO build_dxtn
@if "%branch%"=="17.2" git apply -v ..\mesa-dist-win\patches\scons-llvm5.patch
@git apply -v ..\mesa-dist-win\patches\s3tc.patch
@if NOT "%mesaver:~-5%"=="devel" git apply -v ..\mesa-dist-win\patches\scons3.patch
@set mesapatched=1
Expand Down
4 changes: 1 addition & 3 deletions buildscript/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ Extract in `.`. Be warned that the archive is double packed. Rename extracted fo
You can use the portable version if you don't want to bloat your system too much, but you have to add it to PATH. Required due to Scons 3.0.0 support requiring a patch on Mesa code, now that Scons is always up-to-date.
- [LLVM source code](http://llvm.org/);

LLVM 5.0 is not yet supported. See [Mesa bug 102318](https://bugs.freedesktop.org/show_bug.cgi?id=102318). A patch is included in this repository in `patches/scons-llvm5.patch` for Mesa3D source code to make it work which requires git in order to apply. This build script will try to apply it automatically. To apply manually, browse in Command Prompt to Mesa3D source code, then use `git apply` command with the location of the patch file as parametter.

Extract LLVM code in `.`. Rename extracted folder to `llvm`. If you use Visual Studio 2017, LLVM 4.0 is the only version that supports it.
Extract LLVM code in `.`. Rename extracted folder to `llvm`. If you use Visual Studio 2017, LLVM 4.0 is the minimum version that supports it.
- [Ninja build system](https://github.com/ninja-build/ninja/releases)

Optional, it reduces LLVM build size as it works with single configuration. Unlike Visual Studio MsBuild which require a Release and a Debug configuration at minimum.
Expand Down
33 changes: 0 additions & 33 deletions patches/scons-llvm5.patch

This file was deleted.

3 changes: 1 addition & 2 deletions relnotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
- Add Scons 3.0.0 compatibility patch to Mesa3D Git-powered auto-patches.
Only apply it to Mesa stable, patch is upstream now.
- Determine Mesa branch even if it is not built. Preparation for S3TC merger.
- Drop LLVM 5.0 compatibility patch when building Mesa master and version 17.1.10.
Patch is upstream.
- Ensure auto-patching is done once and only once.
- Look for Git before trying to patch. It is pointless if it is not found.
- This script won't find Scons if it isn't in a certain relative location to it.
Addressed this by fixing scons locating when Python it's in PATH right from the beginning.
- Added Scons to python update checking and auto-install. Depends on wheel.
1 less dependency requiring manual installation.
- Halt execution if Mesa is missing and it can't be acquired or its acquiring is refused by user.
- Drop LLVM 5.0 compatibility patch. Patch is upstream in all active branches.

# Build script documentation
- Compatibility fix for Scons 3.0.0.
Expand Down

0 comments on commit 4a48bda

Please sign in to comment.