Skip to content

Commit 8d5c71f

Browse files
committed
[Hack] Disable Rust-specific modifications to LLVM
Upstream Rust has custom functionality compared to LLVM upstream. Each one makes upgrading harder. Sigh. - target and feature listing support - JSBackend
1 parent 7e38e79 commit 8d5c71f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ do
17961796
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_ASSERTIONS=ON"
17971797
fi
17981798

1799-
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_TARGETS_TO_BUILD='X86;ARM;AVR;AArch64;Mips;PowerPC;SystemZ;JSBackend;MSP430'"
1799+
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_TARGETS_TO_BUILD='X86;ARM;AVR;AArch64;Mips;PowerPC;SystemZ;MSP430'"
18001800
CMAKE_ARGS="$CMAKE_ARGS -G '$CFG_CMAKE_GENERATOR'"
18011801
CMAKE_ARGS="$CMAKE_ARGS $CFG_LLVM_SRC_DIR"
18021802

src/rustllvm/PassWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ from_rust(LLVMRustCodeGenOptLevel level)
250250
}
251251
}
252252

253-
#if LLVM_RUSTLLVM
253+
#if LLVM_RUSTLLVM && false
254254
/// getLongestEntryLength - Return the length of the longest entry in the table.
255255
///
256256
static size_t getLongestEntryLength(ArrayRef<SubtargetFeatureKV> Table) {

0 commit comments

Comments
 (0)