Skip to content

Commit 902260c

Browse files
committed
Switch Windows dll dir search order: most-specific first
Signed-off-by: Gary Oberbrunner <[email protected]>
1 parent 8995638 commit 902260c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Documentation/sources/Reference/ofxPackaging.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,16 @@ cannot load native Arm64 DLLs, only Intel or Arm64EC.
123123
Windows also supports an Arm64X "fat" binary PE format which
124124
contains both Intel/Arm64EC and Arm64 binaries.
125125

126-
Since apps built natively for Arm64 ("Arm64" abi) can only load Arm64
127-
DLLs, those apps should attempt to load plugins from the "Win-arm64x"
128-
folder first, then "Win-arm64". Arm64EC hosts (running on an Arm64
129-
system) should try the "Win-arm64x" folder first, then "Win-arm64ec".
130-
Arm64EC hosts can also use x64 DLLs, so they may try "Win64" as well,
131-
but should prefer the other folders to avoid running the plugin in
132-
emulation. An Arm64X host will be running either its Arm64EC branch or
133-
its Arm64 branch depending on how it's launched, so it should load
134-
plugins according to the above depending on the current mode.
126+
**Search Order**: Since apps built natively for Arm64 ("Arm64" abi)
127+
can only load Arm64 DLLs, those apps should attempt to load plugins
128+
from the "Win-arm64" folder first, then "Win-arm64x". Arm64EC hosts
129+
(running on an Arm64 system) should try the "Win-arm64ec" folder
130+
first, then "Win-arm64x". Arm64EC hosts can also use x64 DLLs, so they
131+
may try "Win64" as well, but should prefer the other folders to avoid
132+
running the plugin in emulation. An Arm64X host will be running either
133+
its Arm64EC branch or its Arm64 branch depending on how it's launched,
134+
so it should load plugins according to the above depending on the
135+
current mode.
135136

136137
Note that there is no "fat binary" format on Windows that contains
137138
Intel x64 *and* arm64 code.

0 commit comments

Comments
 (0)