Changeset 16555 in niluje


Ignore:
Timestamp:
Oct 8, 2019, 7:59:22 PM (10 days ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • More Clang notes
Location:
Configs/trunk/Kindle/Misc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-clang-compiler-rt.sh

    r16554 r16555  
    1414SCRIPTS_BASE_DIR="$(readlink -f "${SCRIPT_NAME%/*}")"
    1515
    16 # First, we'll need the right env
     16# First, we'll need the right env (i.e., Clang + gcc-toolchain)
    1717# NOTE: Hardcoded to Kobo because that's what I care about ;).
    1818. ${SCRIPTS_BASE_DIR}/x-compile.sh kobo env clang-gcc
     
    5858        -DCMAKE_ASM_FLAGS="${CFLAGS}"
    5959ninja -v
    60 # NOTE: That's not particularly great, but, eh.
     60# NOTE: That's not particularly great, but, eh, I won't whine too much for three files with very specific filenames ;).
    6161sudo ninja -v install
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r16554 r16555  
    848848                # Swap between compiler-rt and libgcc
    849849                # c.f., x-clang-compiler-rt.sh to build compiler-rt in the first place ;).
     850                # NOTE: Don't run it blindly, though, as it's experimental, tailored to Gentoo, and (minimally) affects the host's rootfs!
     851                # NOTE: For C++, the general idea would be the same to swap to libunwind/libc++ via --stdlib=libc++ instead of libgcc_s/libstdc++ ;).
    850852                if [[ "${3}" == "clang-gcc" ]] ; then
    851853                        export CFLAGS="--target=${CROSS_TC} --sysroot=$(${CROSS_TC}-gcc -print-sysroot) --gcc-toolchain=${HOME}/x-tools/${CROSS_TC} ${RICE_CFLAGS}"
Note: See TracChangeset for help on using the changeset viewer.