Skip to content
Snippets Groups Projects
Commit 74e22112 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Add libunwind component

parent 9b3222c3
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
#@ load("/components/mpc.lib.yml", "mpc_component")
#@ load("/components/mpfr.lib.yml", "mpfr_component")
#@ load("/components/cmake.lib.yml", "cmake_component")
#@ load("/components/libunwind.lib.yml", "libunwind_component")
#@ load("/components/llvm.lib.yml", "llvm_component")
#@ load("/components/llvm_documentation.lib.yml", "llvm_documentation_component")
#@ load("/components/llvmcpy.lib.yml", "llvmcpy_component")
......@@ -44,6 +45,7 @@ components:
mpc: #@ mpc_component
mpfr: #@ mpfr_component
cmake: #@ cmake_component
libunwind: #@ libunwind_component
llvm: #@ llvm_component
llvm-documentation: #@ llvm_documentation_component
llvmcpy: #@ llvmcpy_component
......
......@@ -28,6 +28,7 @@ builds:
dependencies:
- clang-release
- toolchain/host/gcc
- libunwind
#@ end
---
......
......@@ -43,6 +43,7 @@ builds:
dependencies:
- toolchain/host/gcc
- toolchain/host/binutils
- libunwind
#@ end
---
......
#@ load("/lib/create_component.lib.yml", "single_build_component")
#@ load("/global_options.lib.yml", "options")
#@ source_url = "https://download.savannah.nongnu.org/releases/libunwind/libunwind-1.4.0.tar.gz"
#@yaml/text-templated-strings
---
#@ def _libunwind_args():
configure: |
mkdir -p "$BUILD_DIR"
extract.sh --into "$BUILD_DIR" (@= source_url @)
cd "$BUILD_DIR"
export CC="cc -fcommon"
./configure \
--enable-cxx-exceptions \
--disable-coredump \
--disable-ptrace \
--enable-setjmp \
--disable-debug-frame \
--disable-documentation \
--disable-minidebuginfo \
--disable-static \
--disable-conservative_checks \
--disable-debug \
--prefix="$ORCHESTRA_ROOT" \
CFLAGS="" \
LDFLAGS="(@= options["modern_linker_flags"] @) -Wl,-rpath,$RPATH_PLACEHOLDER/lib"
build_system: make
dependencies:
- toolchain/host/gcc
#@ end
---
#@ libunwind_component = single_build_component(**_libunwind_args())
......@@ -31,6 +31,7 @@ builds:
dependencies:
- toolchain/host/gcc
- clang-release
- libunwind
#@ end
#@ end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment