Changeset 16547 in niluje


Ignore:
Timestamp:
Oct 7, 2019, 11:42:01 PM (11 days ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Add some more Clang notes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r16546 r16547  
    841841                export CXX="clang++"
    842842                # NOTE: The --gcc-toolchain bit is mainly helpful to lld (apparently)
     843                # NOTE: Ideally, we'd prefer using --rtlib=compiler-rt, but that probably requires a fully integrated cross-tc build...
     844                #       (i.e., Gentoo's compiler-rt ebuild only builds that for the host, which makes sense).
     845                # NOTE: In the same vein, we also have to go with libstdc++, so no --stdlib=libc++ either ;).
     846                # NOTE: I could, supposedly, simply cross-compile compiler-rt myself?
     847                #       c.f., https://archive.fosdem.org/2018/schedule/event/crosscompile/attachments/slides/2107/export/events/attachments/crosscompile/slides/2107/How_to_cross_compile_with_LLVM_based_tools.pdf
     848                #       which points to https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html
    843849                export CFLAGS="--target=${CROSS_TC} --sysroot=$(${CROSS_TC}-gcc -print-sysroot) --gcc-toolchain=${HOME}/x-tools/${CROSS_TC} ${RICE_CFLAGS}"
    844850                export CXXFLAGS="--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.