Skip to content

Commit 7924ad6

Browse files
committedMar 2, 2025··
CreateSymlink: always mex on Windows
1 parent 98c6996 commit 7924ad6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ functions from the Matlab prompt in Matlab R2023a or newer:
3838
buildtool mex
3939
```
4040

41-
If just building MEX functions for the first time, to ensure the MEX functions are used instead of the plain Matlab script, one-time do a `clear all` in Matlab.
41+
If just building MEX functions for the first time, to ensure the MEX functions are used instead of the plain Matlab script, one-time type `clear functions` in Matlab.
4242

4343
## Java-based functions
4444

‎buildfile.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,14 @@ function build_exe(context)
221221

222222
if isMATLABReleaseOlderThan("R2024b") || build_all
223223
srcs{end+1} = ["src/is_symlink.cpp", win, sym];
224-
srcs{end+1} = ["src/create_symlink.cpp", win, sym];
225224
srcs{end+1} = ["src/read_symlink.cpp", win, sym];
226225
end
227226

227+
if isMATLABReleaseOlderThan("R2024b") || build_all || ispc
228+
% so that we dont't need to run matlab AsAdmin on Windows
229+
srcs{end+1} = ["src/create_symlink.cpp", win, sym];
230+
end
231+
228232
end
229233

230234

0 commit comments

Comments
 (0)
Please sign in to comment.