tea.xyz/gx/cc now provides these symlinks

This commit is contained in:
Max Howell 2022-10-17 15:36:52 -04:00
parent 37caca506b
commit 3c10bd9f77

View file

@ -2,8 +2,6 @@ distributable:
url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version }}/llvm-project-{{ version }}.src.tar.xz
strip-components: 1
#TODO depends on the command line tools
versions:
github: llvm/llvm-project
strip: /^LLVM /
@ -16,6 +14,10 @@ provides:
- bin/clang
- bin/clang++
dependencies:
darwin:
apple.com/xcode/clt: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
@ -30,29 +32,6 @@ build:
$ARGS
ninja
ninja install
#TMP these are required for many build-scripts to function
# however we want to provide a “generic” system for this
# but it's too early
cd {{ prefix }}/bin
ln -sf clang cc
ln -sf clang++ c++
ln -sf lld ld
for x in ar as strip objcopy nm objdump ranlib readelf strings; do
ln -sf llvm-$x $x
done
# need this or if `gcc` is in the PATH then configure often will use `gcc`
# coupled with one of the above as a sub-task (eg. `as`) and gcc feeds it
# the wrong args
#FIXME longer term we should not have any hacks outside of `build.ts`
ln -sf clang gcc
ln -sf clang++ g++
#TODO the above hacks should be a separate directory that can be added
# to the PATH when tea.xyz/gx/cc is used
#NOTE they must be symlinks as clang/llvm behave differently based on their arg0 name
receipt:
- LLVMConfig.cmake
env: