From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Make and "cc" executable Date: Fri, 09 Nov 2018 14:36:01 +0100 Message-ID: <87o9aymkzi.fsf@ambrevar.xyz> References: <878t24m0a7.fsf@ambrevar.xyz> <87o9ayxu45.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gL6xG-0001tA-1u for help-guix@gnu.org; Fri, 09 Nov 2018 08:36:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gL6xC-0007Vf-Fb for help-guix@gnu.org; Fri, 09 Nov 2018 08:36:09 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:57885) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gL6xC-0007QI-60 for help-guix@gnu.org; Fri, 09 Nov 2018 08:36:06 -0500 In-reply-to: <87o9ayxu45.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: Help Guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alright, so what I did is add the following to my ~/.profile. =2D-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=3Dclang else export CC=3Dgcc fi fi =2D-8<---------------cut here---------------end--------------->8--- Now I can run `make` and it works as expected for projects that don't defin= e CC. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlvljUEACgkQm9z0l6S7 zH8z1Af/bYnKYkDReDlbAlfTf+C2lFg1pcDSkPLAes4jmawzxoMW0j88mW+9oMe+ Xz0UepfhKGae3cAlmQay8itDpqAs9v594IsyhdzxnwD3Sc5Rtzu5wF0L8MzdT158 WASErLjQe0VaDZyaPzSxhxGBX/zMqV3lX0CJiD8O0NFR/kPb4qkE/lgwQgUploMb qIYpFUJnvU1B3g+HjWBfrofrLNnpoRAjFEfYQvHb2KBpnOlZUF+XO8X9oxvPuAPW wXV8fpi4cWduICuJET74xogKTnk5/KumjDa+xVlYYZo/G6lwcxVw7h88UU+4MIVO bR+DMhjfhwBe11pPnlga8K/j/nP7Lw== =VEGO -----END PGP SIGNATURE----- --=-=-=--