Skip to content

Commit 930cd3a

Browse files
committed
Arch Linux: fix build
For some reason, I started getting the following error when building our Arch Linux package: CMake Error at cmake/QuickLintJSTarget.cmake:8 (add_executable): The install of the quick-lint-js target requires changing an RPATH from the build tree, but this is not supported with the Ninja generator unless on an ELF-based or XCOFF-based platform. The CMAKE_BUILD_WITH_INSTALL_RPATH variable may be set to avoid this relinking step. Call Stack (most recent call first): src/CMakeLists.txt:22 (quick_lint_js_add_executable) (Arch Linux is an ELF-based platform, so I don't know why we're getting this error.) Work around this error by applying the suggested fix.
1 parent 61dc672 commit 930cd3a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

dist/arch/PKGBUILD-dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build() {
2828
cd quick-lint-js
2929
cmake -G Ninja \
3030
-DCMAKE_BUILD_TYPE=Release \
31+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=YES \
3132
-DCMAKE_INSTALL_PREFIX=/usr \
3233
-DQUICK_LINT_JS_INSTALL_LICENSES_DIR="share/licenses/${pkgname}" \
3334
-S . -B build

dist/arch/PKGBUILD-git

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ build() {
2828
cd quick-lint-js
2929
cmake -G Ninja \
3030
-DCMAKE_BUILD_TYPE=Release \
31+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=YES \
3132
-DCMAKE_INSTALL_PREFIX=/usr \
3233
-DQUICK_LINT_JS_INSTALL_LICENSES_DIR="share/licenses/${pkgname}" \
3334
-S . -B build

dist/arch/PKGBUILD-release

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build() {
2323
cd "${pkgname}-${pkgver}"
2424
cmake -G Ninja \
2525
-DCMAKE_BUILD_TYPE=Release \
26+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=YES \
2627
-DCMAKE_INSTALL_PREFIX=/usr \
2728
-DQUICK_LINT_JS_INSTALL_LICENSES_DIR="share/licenses/${pkgname}" \
2829
-S . -B build

0 commit comments

Comments
 (0)