build: Use ld.lld as linker
This commit is contained in:
parent
0864d582a2
commit
0986527495
9
.github/workflows/analysis.yml
vendored
9
.github/workflows/analysis.yml
vendored
@ -42,10 +42,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
CC=gcc-10 CXX=g++-10 cmake \
|
CC=gcc-10 CXX=g++-10 cmake \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
|
||||||
..
|
..
|
||||||
make -j 4 install
|
make -j 4 install
|
||||||
|
|
||||||
|
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@ -50,11 +50,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
CC=gcc-10 CXX=g++-10 cmake \
|
CC=gcc-10 CXX=g++-10 cmake \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
-DRUST_PATH="$HOME/.cargo/bin/" \
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DRUST_PATH="$HOME/.cargo/bin/" \
|
||||||
..
|
..
|
||||||
make -j 4 install
|
make -j 4 install
|
||||||
|
|
||||||
@ -128,6 +131,7 @@ jobs:
|
|||||||
msystem: mingw64
|
msystem: mingw64
|
||||||
pacboy: >-
|
pacboy: >-
|
||||||
gcc:p
|
gcc:p
|
||||||
|
lld:p
|
||||||
cmake:p
|
cmake:p
|
||||||
make:p
|
make:p
|
||||||
ccache:p
|
ccache:p
|
||||||
@ -169,13 +173,16 @@ jobs:
|
|||||||
PYTHON_LIB_NAME=$(pkg-config --libs-only-l python3 | sed 's/^-l//' | sed 's/ //')
|
PYTHON_LIB_NAME=$(pkg-config --libs-only-l python3 | sed 's/^-l//' | sed 's/ //')
|
||||||
PYTHON_LIB_PATH=$(cygpath -m $(which lib${PYTHON_LIB_NAME}.dll))
|
PYTHON_LIB_PATH=$(cygpath -m $(which lib${PYTHON_LIB_NAME}.dll))
|
||||||
|
|
||||||
cmake -G "MinGW Makefiles" \
|
cmake -G "MinGW Makefiles" \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||||
-DCREATE_PACKAGE=ON \
|
-DCREATE_PACKAGE=ON \
|
||||||
-DPython_LIBRARY="$PYTHON_LIB_PATH" \
|
-DPython_LIBRARY="$PYTHON_LIB_PATH" \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
-DRUST_PATH="$USERPROFILE/.cargo/bin/" \
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DRUST_PATH="$USERPROFILE/.cargo/bin/" \
|
||||||
..
|
..
|
||||||
mingw32-make -j4 install
|
mingw32-make -j4 install
|
||||||
cpack
|
cpack
|
||||||
@ -225,11 +232,14 @@ jobs:
|
|||||||
CXX=$(brew --prefix llvm)/bin/clang++ \
|
CXX=$(brew --prefix llvm)/bin/clang++ \
|
||||||
PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" \
|
PKG_CONFIG_PATH="$(brew --prefix openssl)/lib/pkgconfig":"$(brew --prefix)/lib/pkgconfig" \
|
||||||
MACOSX_DEPLOYMENT_TARGET="10.15" \
|
MACOSX_DEPLOYMENT_TARGET="10.15" \
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
-DCREATE_BUNDLE=ON \
|
-DCREATE_BUNDLE=ON \
|
||||||
-DCREATE_PACKAGE=ON \
|
-DCREATE_PACKAGE=ON \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
|
||||||
..
|
..
|
||||||
make -j4 package
|
make -j4 package
|
||||||
|
|
||||||
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@ -39,10 +39,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
CC=gcc-10 CXX=g++-10 cmake \
|
CC=gcc-10 CXX=g++-10 cmake \
|
||||||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
|
||||||
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||||
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
||||||
|
-DCMAKE_C_FLAGS="-fuse-ld=lld" \
|
||||||
|
-DCMAKE_CXX_FLAGS="-fuse-ld=lld" \
|
||||||
..
|
..
|
||||||
make -j4 unit_tests install
|
make -j4 unit_tests install
|
||||||
|
|
||||||
|
13
dist/get_deps_archlinux.sh
vendored
13
dist/get_deps_archlinux.sh
vendored
@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
pacman -S --needed \
|
pacman -S --needed \
|
||||||
cmake \
|
cmake \
|
||||||
gcc \
|
gcc \
|
||||||
glfw \
|
lld \
|
||||||
file \
|
glfw \
|
||||||
mbedtls \
|
file \
|
||||||
python3 \
|
mbedtls \
|
||||||
|
python3 \
|
||||||
freetype2 \
|
freetype2 \
|
||||||
gtk3
|
gtk3
|
||||||
|
1
dist/get_deps_debian.sh
vendored
1
dist/get_deps_debian.sh
vendored
@ -14,6 +14,7 @@ apt install -y \
|
|||||||
build-essential \
|
build-essential \
|
||||||
gcc-10 \
|
gcc-10 \
|
||||||
g++-10 \
|
g++-10 \
|
||||||
|
lld \
|
||||||
${PKGCONF:-} \
|
${PKGCONF:-} \
|
||||||
cmake \
|
cmake \
|
||||||
make \
|
make \
|
||||||
|
19
dist/get_deps_fedora.sh
vendored
19
dist/get_deps_fedora.sh
vendored
@ -1,12 +1,13 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
dnf install \
|
dnf install \
|
||||||
cmake \
|
cmake \
|
||||||
gcc-c++ \
|
gcc-c++ \
|
||||||
file-devel \
|
lld \
|
||||||
glfw-devel \
|
file-devel \
|
||||||
mesa-libGL-devel \
|
glfw-devel \
|
||||||
mbedtls-devel \
|
mesa-libGL-devel \
|
||||||
python-devel \
|
mbedtls-devel \
|
||||||
freetype-devel \
|
python-devel \
|
||||||
|
freetype-devel \
|
||||||
gtk3-devel
|
gtk3-devel
|
||||||
|
21
dist/get_deps_msys2.sh
vendored
21
dist/get_deps_msys2.sh
vendored
@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
pacman -S --needed --noconfirm \
|
pacman -S --needed --noconfirm \
|
||||||
mingw-w64-x86_64-gcc \
|
mingw-w64-x86_64-gcc \
|
||||||
mingw-w64-x86_64-cmake \
|
mingw-w64-x86_64-lld \
|
||||||
mingw-w64-x86_64-make \
|
mingw-w64-x86_64-cmake \
|
||||||
mingw-w64-x86_64-ccache \
|
mingw-w64-x86_64-make \
|
||||||
mingw-w64-x86_64-glfw \
|
mingw-w64-x86_64-ccache \
|
||||||
mingw-w64-x86_64-file \
|
mingw-w64-x86_64-glfw \
|
||||||
mingw-w64-x86_64-mbedtls \
|
mingw-w64-x86_64-file \
|
||||||
mingw-w64-x86_64-python \
|
mingw-w64-x86_64-mbedtls \
|
||||||
mingw-w64-x86_64-freetype \
|
mingw-w64-x86_64-python \
|
||||||
|
mingw-w64-x86_64-freetype \
|
||||||
mingw-w64-x86_64-dlfcn
|
mingw-w64-x86_64-dlfcn
|
||||||
|
1
dist/msys2/PKGBUILD
vendored
1
dist/msys2/PKGBUILD
vendored
@ -9,6 +9,7 @@ url="https://github.com/WerWolv/ImHex"
|
|||||||
license=('GPLv2')
|
license=('GPLv2')
|
||||||
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
depends=("${MINGW_PACKAGE_PREFIX}-python")
|
||||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
|
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-lld"
|
||||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||||
"${MINGW_PACKAGE_PREFIX}-make"
|
"${MINGW_PACKAGE_PREFIX}-make"
|
||||||
"${MINGW_PACKAGE_PREFIX}-dlfcn"
|
"${MINGW_PACKAGE_PREFIX}-dlfcn"
|
||||||
|
Loading…
Reference in New Issue
Block a user