Skip to content
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

add toolchain shims here #175

Merged
merged 16 commits into from
Sep 29, 2023
Merged

add toolchain shims here #175

merged 16 commits into from
Sep 29, 2023

Conversation

mxcl
Copy link
Member

@mxcl mxcl commented Sep 23, 2023

  • only added if no other toolchain is added
    • ∴ brewkit provides basic, expected build infra
  • on linux shim through to llvm
  • on mac shim through to system

rationale

  • reduces hacks in our infra
  • these are only used with pantry builds
  • brewkit controls that
  • everyone expects a C compiler, builds either will work with this or they need to be more specifiuc
  • for end users removes the surprise of cc being some weird hack
  • end users have to control rpaths themselves and if they are going that low-level then they know what to do
  • magic is bad

* only added if no other toolchain is added
* on linux shim through to llvm
* on mac shim through to system

rationale
* reduces hacks in our infra
* these are only used with pantry builds
* brewkit controls that
* everyone expects a C compiler, builds either will work with this or they need to be more specifiuc
* for end users removes the surprise of `cc` being some weird hack
* end users have to control rpaths themselves and if they are going that low-level then they know what to do
* magic is bad
@mxcl
Copy link
Member Author

mxcl commented Sep 25, 2023

while I think this is the right approach I note that llvm adjusts its behave if it is invoked with arg0 cc or gcc and using shims does not preserve this behavior.

Thus the above approach is not adequate, instead we will need to dynamically create symlinks on linux that point to the installed llvm. I'll consider whether this is sensible in advance of v1.0 next week.

I'm thinking: no: there are too many moving parts already.

@mxcl
Copy link
Member Author

mxcl commented Sep 29, 2023

the failure is fixed in tea/cli v1

@mxcl mxcl merged commit f6e80b6 into main Sep 29, 2023
8 of 9 checks passed
@mxcl mxcl deleted the shims branch September 29, 2023 18:05
mxcl added a commit that referenced this pull request Sep 29, 2023
* add toolchain shims here

* only added if no other toolchain is added
* on linux shim through to llvm
* on mac shim through to system

rationale
* reduces hacks in our infra
* these are only used with pantry builds
* brewkit controls that
* everyone expects a C compiler, builds either will work with this or they need to be more specifiuc
* for end users removes the surprise of `cc` being some weird hack
* end users have to control rpaths themselves and if they are going that low-level then they know what to do
* magic is bad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant