6
$\begingroup$

What's the default optimization level (e.g. -O2, -O3) used by the function CreateLibrary, which invokes the system compiler to compile C/C++ code for use in LibraryLink?

$\endgroup$
6
$\begingroup$

This depends on the specific compiler driver that is being used.

The easiest way to get not only the compiler options, but the entire compilation command is to add "ShellCommandFunction" -> Print to CreateLibrary (or whichever function you used to compile).

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.