From 04fcec2c19fd804482f12245f5bf0575e4c64e5d Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 20 Apr 2017 16:15:17 +1200 Subject: Fix cc stuff --- environment | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'environment') diff --git a/environment b/environment index 1ae64ba..9f4a5d3 100644 --- a/environment +++ b/environment @@ -1,10 +1,15 @@ +#!/bin/sh + export GPG_TTY=$(tty) export EDITOR=/usr/bin/vim -if $(which clang 2>/dev/null); then +if hash clang 2>/dev/null; then export CC=clang export CXX=clang -elif [[ $(which tcc 2>/dev/null) && !$(which gcc 2>/dev/null) ]]; then +elif hash gcc 2>/dev/null ; then + export CC=gcc + export CXX=g++ +elif hash tcc 2>/dev/null ; then export CC=tcc fi -- cgit v1.1