We need headers for testing on Linux & macOS
@@ -41,6 +41,12 @@ requirements:
- {{ pin_compatible('libclang13') }}
test:
+ requires:
+ # To parse sample.h we need the type_traits headers shipped with the C++
+ # compiler on Linux & macOS.
+ # We do not use compiler('cxx') here since on macOS, that is a clang that
+ # might not be compatible with the libclang installed.
+ - cxx-compiler # [not win]
files:
- sample.h
commands:
