mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.16k stars 112 forks source link

make ./configure autoset gcc via CC & friends #1222

Open drewc opened 7 months ago

drewc commented 7 months ago

The new %default-gerbil-gcc can be set! semi-permanently via the ./configure script by $CC or $GERBIL_GCC.

Then the gxc compiler (and bach) will always use that UNLESS it no longer exists or GERBIL_GCC is set, or CC is set.

If it cannot find them the old "use the first gcc in $PATH" applies. This is exported via (gerbil-gcc)

A config file will be added.

netlify[bot] commented 7 months ago

Deploy Preview for elastic-ritchie-8f47f9 ready!

Name Link
Latest commit 6457728da3aafe10c144cb74334df544d65ac90e
Latest deploy log https://app.netlify.com/sites/elastic-ritchie-8f47f9/deploys/6626f4d4d4a8670008492803
Deploy Preview https://deploy-preview-1222--elastic-ritchie-8f47f9.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

fare commented 6 months ago

I really don't like the modifying a source file in-place. It doesn't play well with git.

Generating a different file, or having the file read some configuration at compile-time, would be much better.

ober commented 6 months ago

:+1: This bit me on a 5 hour build.