mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 21:06:33 +03:00
Ignore -enable-cross-module-inlining if inlining is generally disabled (#3664)
People use `dflags "-enable-cross-module-inlining" platform="ldc"` in their dub.sdl files; default and debug builds without -O thus incur a superfluous compile-time cost for no benefit.
This commit is contained in:
parent
8d71c8624a
commit
98a066ea30
2 changed files with 8 additions and 11 deletions
|
@ -128,7 +128,7 @@ bool willInline() {
|
|||
}
|
||||
|
||||
bool willCrossModuleInline() {
|
||||
return enableCrossModuleInlining == llvm::cl::BOU_TRUE;
|
||||
return enableCrossModuleInlining == llvm::cl::BOU_TRUE && willInline();
|
||||
}
|
||||
|
||||
#if LDC_LLVM_VER >= 800 && LDC_LLVM_VER < 1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue