-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make ./configure autoset gcc via CC & friends #1222
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for elastic-ritchie-8f47f9 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesnt look bootstrap-safe, I dont think we should autogenerate a module.
Lets try reading an env file at runtime.
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. |
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not modify the compiler, but instead generate a configuration module that is git ignored.
@@ -47,6 +47,34 @@ EOF | |||
} | |||
|
|||
|
|||
set_gerbil_gcc () { | |||
echo "\n;; Added auto via ./configure\n(set! %default-gerbil-gcc \"$1\")" >> \ | |||
./src/gerbil/compiler/driver.ss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't. It is not acceptible to modify any module of the compiler -- that's bad juju.
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, orCC
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.