John Emmas via llvm-dev
2021-Sep-22 15:09 UTC
[llvm-dev] Disabling inline compilation (Clang with VS2019)
On 22/09/2021 15:25, paul.robinson at sony.com wrote:> You can add -v to the command line, which will report the internal command > line passed from the driver to the compiler proper, and with /Ob0 you > should see -fno-inline on that command line. >Yes that works. So it's strange that the inlining seems to be different for us (unless it's some other project setting??) John
John Emmas via llvm-dev
2021-Sep-22 15:33 UTC
[llvm-dev] Disabling inline compilation (Clang with VS2019)
On 22/09/2021 16:09, John Emmas via llvm-dev wrote:> > it's strange that the inlining seems to be different for us (unless > it's some other project setting??) >Anyway, ignoring the "/Ob0" issue for a minute, maybe there's a better solution available... Could compilations be adapted so that wherever a symbol is found to be declared as __declspec(dllimport) there's an automatic assumption that it shouldn't be inlined? John