You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nix-devel
Hi, List.
I tried to follow clang's C++ coroutines guide [1] to test the new feature, but unfortunately got an error
'experimental/coroutine' file not found
Looks like the problem is the experimental headers and libs are missing from the package. I've learned that one need to set certain CMake options described here: https://releases.llvm.org/5.0.0/projects/libcxx/docs/BuildingLibcxx.html#libc-experimental-options . The thing I don't understand at the moment is which expression to tweak. We have clang and clang-eabi versions in the tree, which one should I choose? Could someone guide me throw the process of enabling the experimentals?
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nix-...@googlegroups.com
If you want libcxx instead of gcc's c++ header take a look at clangStdenv
instead of stdenv (unless you are on macOS where this is the default).
Then modify the expression at nixpkgs/pkgs/development/compilers/llvm/5/libc++
to include your cmake flags.
Sergey Mironov
unread,
Jun 10, 2018, 10:45:48 AM6/10/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jörg Thalheim, nix-devel
Jörg, I've found a solution inspired by your answer. Thank you very
much. It turns out that I tried to use clang with libstdc++ from gcc.
Changing my development shell expression from `stdenv.mkDerivation {
name = 'foo'; ... }` to
`pkgs.llvmPackages_5..libcxxStdenv.mkDerivation { name = 'foo'; ... }`
worked for me out of the box. Coroutine header is already included and
I don't need to re-compile clang.