# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/lldb/lldb.conf # Copyright (C) 2009 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- cmake_mod() { tar $taropt `match_source_file -p cmake` -C .. mv -vf ../cmake-*src ../../cmake } hook_add preconf 5 cmake_mod if atstage toolchain; then var_append cmakeopt " " "-DLLVM_DEFAULT_TARGET_TRIPLE=$arch_target" elif atstage cross; then var_append cmakeopt " " "-DLLVM_MAIN_INCLUDE_DIR=$root$includedir" var_append cmakeopt " " "-DLLVM_LIBRARY_DIR=$root$libdir" var_append GCC_WRAPPER_FILTER '|' "sed 's,$root/TOOLCHAIN.*libLLVM\(.*\)\.[as].*,-lLLVM\1,g'" fi [ "${libdir##*/lib}" ] && var_append cmakeopt " " "-DLLVM_LIBDIR_SUFFIX=${libdir##*/lib}" var_append cmakeopt " " "-DBUILD_SHARED_LIBS=ON -DLLDB_INCLUDE_TESTS=OFF"