aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPengcheng Wang <wangpengcheng.pp@bytedance.com>2024-08-26 16:28:38 +0800
committerGitHub <noreply@github.com>2024-08-26 16:28:38 +0800
commita7b22f75daf02ae9a4bf6c2d7cdf85baa829e1b3 (patch)
tree92924930a7cc3036abf9c7b8a325fd0e555b0db3
parentf42ee800388bce42095bdae720539853585aaa76 (diff)
downloadriscv-gnu-toolchain-a7b22f75daf02ae9a4bf6c2d7cdf85baa829e1b3.zip
riscv-gnu-toolchain-a7b22f75daf02ae9a4bf6c2d7cdf85baa829e1b3.tar.gz
riscv-gnu-toolchain-a7b22f75daf02ae9a4bf6c2d7cdf85baa829e1b3.tar.bz2
Install OpenMP to sysroot (#1541)
Or we can't find headers and libraries.
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index f9eb1e0..54c740a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1016,7 +1016,7 @@ stamps/build-llvm-linux: $(LLVM_SRCDIR) $(LLVM_SRC_GIT) $(BINUTILS_SRCDIR) $(BIN
mkdir $(notdir $@)/openmp-shared; \
cmake -S$(LLVM_SRCDIR)/openmp \
-B$(notdir $@)/openmp-shared \
- -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) \
+ -DCMAKE_INSTALL_PREFIX=$(SYSROOT) \
-DCMAKE_C_COMPILER=$(INSTALL_DIR)/bin/clang \
-DCMAKE_CXX_COMPILER=$(INSTALL_DIR)/bin/clang++ \
-DOPENMP_ENABLE_LIBOMPTARGET=Off \
@@ -1035,7 +1035,7 @@ stamps/build-llvm-linux: $(LLVM_SRCDIR) $(LLVM_SRC_GIT) $(BINUTILS_SRCDIR) $(BIN
mkdir $(notdir $@)/openmp-static; \
cmake -S$(LLVM_SRCDIR)/openmp \
-B$(notdir $@)/openmp-static \
- -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR) \
+ -DCMAKE_INSTALL_PREFIX=$(SYSROOT) \
-DCMAKE_C_COMPILER=$(INSTALL_DIR)/bin/clang \
-DCMAKE_CXX_COMPILER=$(INSTALL_DIR)/bin/clang++ \
-DOPENMP_ENABLE_LIBOMPTARGET=Off \