-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove CCompiler.{envScript,envScriptArgs}
and replace by other means
#1606
Comments
/cc @dcharkes For discussion |
The way that the Windows commandline compiler works is that you're supposed to launch a different shell, that has all these env-vars set (including where to find standard libraries.)
Every user will have to do that, that sounds horrible. Without the env vars basically no compilation can succeed.
That could work, but that requires us to do this in multiple places:
So the hacky code that runs the bash script to extract the vars would live in multiple places instead of one. Not sure if that's cleaner or worse than the current solution. |
I could imagine having some helper function somewhere that invokes this That shared helper can be used by all bundling tools (of which there's very few) when determining the To me this seems better than exposing |
Currently we have the following class:
It is very weird to have
envScript
andenvScriptArgs
here. It seems that windows-specific details are being exposed by this API.We should consider removing these two fields and instead do that differently:
class CCompilerConfig { final Map<String, String> environmentVariables; }
that encapsulate the additional environment variables needed when invokingCCompilerConfig.{compiler,linker,archiver}
The text was updated successfully, but these errors were encountered: