github.com/imran-kn/cilium-fork@v1.6.9/contrib/scripts/find-llvm.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  if [ -x /usr/lib/llvm-7/bin/clang ]; then
     4  	echo "/usr/lib/llvm-7"
     5  	exit 0
     6  fi
     7  
     8  find / -iname libLLVMBPFCodeGen.a | head -1 | xargs dirname | xargs dirname