#!/bin/tcsh -f # Make sure BMS_OSNAME is set if ( ! $?BMS_OSNAME ) source ${SETUP_SCRIPTS}/BMS_OSNAME # Try setting a few directories for the CLANG root so # this script can be used on multiple systems set CLANGSETUP=/group/halld/Software/ExternalPackages/clang-llvm/llvm_clang_3.8.0/setenv.csh if ( ! -e ${CLANGSETUP} ) set CLANGSETUP=/usr/local/clang/clang+llvm-3.8.0-x86_64-apple-darwin/setenv.csh if ( ! -e ${CLANGSETUP} ) set CLANGSETUP=/group/halld/Software/ExternalPackages/clang-llvm/llvm_clang_3.7.0/setenv.csh if ( ! -e ${CLANGSETUP} ) set CLANGSETUP=/usr/local/clang/clang+llvm-3.7.0-x86_64-apple-darwin/setenv.csh if ( -e ${CLANGSETUP} ) then source ${CLANGSETUP} # Only print if this is a login shell (otherwise "less" won't work) if( $?loginsh ) echo "setting C++ compiler to "`dirname ${CLANGSETUP}` filter_path PATH filter_path LD_LIBRARY_PATH # Re-define BMS_OSNAME source ${SETUP_SCRIPTS}/BMS_OSNAME else if( $?loginsh ) echo "Clang setup doesn't exist for this platform." endif