[lld] [lld][WebAssembly] Always search *.so for -Bdynamic (PR #84288)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 09:45:16 PDT 2024
================
@@ -556,6 +554,11 @@ static void readConfigs(opt::InputArgList &args) {
config->zStackSize =
args::getZOptionValue(args, OPT_z, "stack-size", WasmPageSize);
+ // -Bdynamic by default if -pie or -shared is specified.
+ if (config->pie || config->shared) {
+ config->isStatic = false;
+ }
----------------
MaskRay wrote:
The convention removes braces in this single line statement case.
https://github.com/llvm/llvm-project/pull/84288
More information about the llvm-commits
mailing list