[swift-dev] Using gyb with benchmarks

Pavol Vaskovic pali at pali.sk
Thu Apr 6 08:16:12 CDT 2017


I’ve been trying to use gyb to simplify maintenance of some tests in benchmark/single-source/.

I have created DropLast.swift.gyb, but it appears this approach is currently not supported by the build system. Doing a clean build I got the following error:

> + /usr/local/bin/cmake --build /Users/mondo/Developer/swift-source/build/Ninja-ReleaseAssert/swift-macosx-x86_64 -- -j2 all swift-test-stdlib-macosx-x86_64 swift-benchmark-macosx-x86_64
> ninja: error: '/Users/mondo/Developer/swift-source/swift/benchmark/single-source/DropLast.swift', needed by 'benchmark/Onone-x86_64-apple-macosx10.9/DropLast.o', missing and no known rule to make it
> ./swift/utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

How do I make benchmarks work with gyb?

Best regards
Pavol Vaskovic

More information about the swift-dev mailing list