timbertson / opam2nix

Generate nix expressions from opam packages
MIT License
93 stars 28 forks source link

overriding clang version #65

Open joprice opened 2 years ago

joprice commented 2 years ago

I'm trying to build dnssd, which has some c code. It fails with the error below, which I suspect would compile with a newer clang toolchain. Unfortunately, I'm having trouble specifying any clang version. It's not clear to me where builder is getting the compiler from.

clang-7: warning: argument unused during compilation: '-fno-strict-overflow' [-Wunused-command-line-argument]
osx_dnssd.c:162:3: error: unknown type name 'bool'
  bool finalized;
  ^
osx_dnssd.c:176:18: error: use of undeclared identifier 'true'; did you mean 'free'?
  q->finalized = true;
                 ^~~~
                 free