Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit c21f4fe

Browse files
committed
ci: print more about llvm environment, fix linker issue
1 parent 4069e63 commit c21f4fe

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

.github/workflows/x86_64-apple-darwin-compiler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
tar -xzf "clang+llvm-${LLVM_VERSION}-x86_64-apple-darwin21.0.tar.xz"
4848
mv "clang+llvm-${LLVM_VERSION}-x86_64-apple-darwin21.0" firefly
4949
popd
50+
echo ~/.local/share/llvm/firefly/bin/llvm-config --cxxflags
51+
echo ~/.local/share/llvm/firefly/bin/llvm-config --ldflags
52+
echo ~/.local/share/llvm/firefly/bin/llvm-config --host-target
5053
- name: Set LLVM_PREFIX
5154
run: echo "LLVM_PREFIX=$HOME/.local/share/llvm/firefly" >> $GITHUB_ENV
5255
- name: Install Ninja

.github/workflows/x86_64-unknown-linux-gnu-compiler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
echo "$("${LLVM_PREFIX}/bin/llvm-config" --prefix)"
3838
exit 1
3939
fi
40+
echo "${LLVM_PREFIX}/bin/llvm-config" --cxxflags
41+
echo "${LLVM_PREFIX}/bin/llvm-config" --ldflags
42+
echo "${LLVM_PREFIX}/bin/llvm-config" --host-target
4043
- name: Install Rust
4144
uses: actions-rs/toolchain@v1
4245
with:

compiler/llvm/c_src/lib/CAPI/Target.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,3 @@ LLVMBool LLVM_InitializeNativeAsmPrinter(void) {
252252
LLVMBool LLVM_InitializeNativeDisassembler(void) {
253253
return LLVMInitializeNativeDisassembler();
254254
}
255-
256-
LLVMTargetDataRef LLVMCreateTargetDataLayout(LLVMTargetMachineRef T) {
257-
return wrap(new DataLayout(unwrap(T)->createDataLayout()));
258-
}
259-
260-
void LLVMDisposeTargetMachine(LLVMTargetMachineRef T) { delete unwrap(T); }
261-
262-
char *LLVMGetHostCPUName(void) { return strdup(sys::getHostCPUName().data()); }
263-
264-
char *LLVMGetTargetMachineTriple(LLVMTargetMachineRef T) {
265-
std::string StringRep = unwrap(T)->getTargetTriple().str();
266-
return strdup(StringRep.c_str());
267-
}

0 commit comments

Comments
 (0)