-
Notifications
You must be signed in to change notification settings - Fork 6
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
Test Clang integration #71
Comments
I tested it a while time ago, to stop
I'm in favor of testing this. What's your usecase? Is this to prepare for macOS support? I've managed to build epics-base with clang in the REPL like this: pkgs = import <nixpkgs> { overlays = [epnix.overlays.default]; }
pkgs.epnix.epics-base.override {
stdenv = pkgs.clangStdenv;
buildPackages = pkgs.buildPackages // { stdenv = pkgs.buildPackages.clangStdenv; };
mkEpicsPackage = pkgs.mkEpicsPackage.override {
stdenv = pkgs.clangStdenv;
buildPackages = pkgs.buildPackages // { stdenv = pkgs.buildPackages.clangStdenv; };
};
} It's way too convoluted for my taste. Here's what I think could make it simpler:
|
I had no specific use-case, I wanted to try a different compiler to diagnose the hardening issue in solved in #67, but maybe OpenBSD down the line. I just ran into the Clang-specific code that was not exercised anywhere |
There is some special code to support Clang (
EPNix/pkgs/epnix/epics-base/default.nix
Lines 47 to 93 in fefa2bf
I tried exercising this by overriding stdenv to
clangStdenv
, but that mixes gcc and clang...The question here is two-fold
epics-base
package with clang if we have specific code to support thisThe text was updated successfully, but these errors were encountered: