You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently we configure default compiler flags in the Nix provided CC toolchain by creating a wrapper script around the compiler binary. However, nixpkgs already has a feature to configure such flags through the cc-flags and ld-flags file in the nix-support directory.
An issue with the wrapper approach is that the flags are passed indiscriminately of how the compiler is invoked. In certain invocations this can cause incompatibilities. For example, on MacOS Monterey on M1 with an LLVM toolchain it was found that calling the compiler with -v and any -l or -isystem flags caused errors. See digital-asset/daml@fb3ecdc for details.
Describe the solution you'd like
Configure any additional flags to the CC toolchain using the cc-flags or ld-flags files. An implementation that can be upstreamed exists here digital-asset/daml@fb3ecdc
Additional context
This was discovered while working on M1 support on Daml here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently we configure default compiler flags in the Nix provided CC toolchain by creating a wrapper script around the compiler binary. However, nixpkgs already has a feature to configure such flags through the
cc-flags
andld-flags
file in thenix-support
directory.An issue with the wrapper approach is that the flags are passed indiscriminately of how the compiler is invoked. In certain invocations this can cause incompatibilities. For example, on MacOS Monterey on M1 with an LLVM toolchain it was found that calling the compiler with
-v
and any-l
or-isystem
flags caused errors. See digital-asset/daml@fb3ecdc for details.Describe the solution you'd like
Configure any additional flags to the CC toolchain using the
cc-flags
orld-flags
files. An implementation that can be upstreamed exists here digital-asset/daml@fb3ecdcAdditional context
This was discovered while working on M1 support on Daml here.
The text was updated successfully, but these errors were encountered: