help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make and "cc" executable


From: Pierre Neidhardt
Subject: Re: Make and "cc" executable
Date: Fri, 09 Nov 2018 14:36:01 +0100
User-agent: mu4e 1.0; emacs 26.1

Alright, so what I did is add the following to my ~/.profile.

--8<---------------cut here---------------start------------->8---
if ! command -v cc >/dev/null 2>&1; then
        if command -v clang >/dev/null 2>&1; then
                export CC=clang
        else
                export CC=gcc
        fi
fi
--8<---------------cut here---------------end--------------->8---

Now I can run `make` and it works as expected for projects that don't define CC.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]