How to pass Clang flags through swiftc

This is an embarrassingly basic question, but I can't seem to find any documentation or existing discussions of this. My search fu must be off...

I want to turn off tail-call optimization and inlining for profiling. In Clang, I believe the options are -fno-inline-functions and -fno-optimize-sibling-calls. But how do I get swiftc to pass or use these flags?

Putting them on the swiftc command line just generates an error. Passing them preceded by -Xcc causes them to be accepted, but the compiler clearly isn't doing anything differently (and that option is labeled as C related anyway).

Terms of Service

Privacy Policy

Cookie Policy