mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 14:32:13 +08:00
Addressed first issue of Issue Pack - NVK (#6).
32-bit LLVM has the wrong 32-bit configuration - Fixed... hopefully. Worried about the line: -DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu.
This commit is contained in:
parent
0324d54e69
commit
6e75b0a9ee
@ -42,6 +42,9 @@
|
||||
<listitem>
|
||||
<para>June 16th, 2024</para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>[Zeckmathederg] - Addressed first issue of Issue Pack - NVK (#6).</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>[Zeckmathederg] - Addressed third issue of Issue Pack - NVK (#6).</para>
|
||||
</listitem>
|
||||
|
@ -220,22 +220,26 @@ cp bin/FileCheck /usr/bin</userinput></screen>
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>CC="gcc -m32" CXX="g++ -m32" \
|
||||
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
||||
-DLLVM_ENABLE_FFI=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_ENABLE_RTTI=ON \
|
||||
-DLLVM_TARGETS_TO_BUILD="host;AMDGPU;X86" \
|
||||
-DLLVM_BINUTILS_INCDIR=/usr/include \
|
||||
-DLLVM_INCLUDE_BENCHMARKS=OFF \
|
||||
-DCLANG_DEFAULT_PIE_ON_LINUX=ON \
|
||||
-DLLVM_BUILD_32_BITS=ON \
|
||||
-DCLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \
|
||||
-Wno-dev -G Ninja .. &&
|
||||
<screen><userinput>cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_LIBDIR=lib32 \
|
||||
-DCMAKE_CXX_FLAGS:STRING=-m32 \
|
||||
-DCMAKE_C_FLAGS:STRING=-m32 \
|
||||
-DLLVM_ENABLE_FFI=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DLLVM_BUILD_LLVM_DYLIB=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB=ON \
|
||||
-DLLVM_ENABLE_RTTI=ON \
|
||||
-DLLVM_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \
|
||||
-DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" \
|
||||
-DLLVM_HOST_TRIPLE=x86_64-pc-linux-gnu \
|
||||
-DLLVM_BINUTILS_INCDIR=/usr/include \
|
||||
-DLLVM_INCLUDE_BENCHMARKS=OFF \
|
||||
-DCLANG_DEFAULT_PIE_ON_LINUX=ON \
|
||||
-DLLVM_LIBDIR_SUFFIX=32 \
|
||||
-DLLVM_TARGET_ARCH:STRING=i686 \
|
||||
-DLLVM_BUILD_32_BITS=ON \
|
||||
-DCLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \
|
||||
-Wno-dev -G Ninja .. &&
|
||||
ninja</userinput></screen>
|
||||
|
||||
<para>
|
||||
@ -244,7 +248,6 @@ ninja</userinput></screen>
|
||||
|
||||
<screen role="root"><userinput>DESTDIR=$PWD/DESTDIR ninja install
|
||||
cp -vr DESTDIR/usr/lib32/* /usr/lib32
|
||||
install -Dm755 -v DESTDIR/usr/bin/llvm-config /usr/bin/llvm-config32
|
||||
rm -rf DESTDIR
|
||||
ldconfig</userinput></screen>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user