import! [metadata, rule_hint=cxx.link] libs = libmetal-cpp%lib{metal-cpp}

exe{driver}: {hxx cxx}{**} $libs testscript{**}

# When the package does not compile the private implementation, the smoke
# test must instantiate it (upstream Apple model).
#
if (!$($libs: libmetal_cpp.implementation))
  exe{driver}: cxx.poptions += -DNS_PRIVATE_IMPLEMENTATION \
                               -DMTL_PRIVATE_IMPLEMENTATION
