Skip to content

Commit 7e46d25

Browse files
author
Jason Mobarak
committed
remove windows debug libraries
1 parent dee416e commit 7e46d25

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,22 @@ if eq ${os} windows
520520
rm ${file}
521521
end
522522
end
523+
523524
qtbins = glob_array ./Lib/site-packages/PySide2/*.exe
524525
for bin in ${qtbins}
525526
rm ${bin}
526527
end
528+
529+
all_dlls = glob_array ./**/*.dll
530+
for dll in ${all_dlls}
531+
if ends_with ${dll} "d.dll"
532+
dll_no_debug = substring ${dll} -5 # remove d.dll
533+
dll_no_debug = concat ${dll_no_debug} ".dll"
534+
if is_path_exists ${dll_no_debug}
535+
rm ${dll}
536+
end
537+
end
538+
end
527539
else
528540
rm -r ./share
529541

0 commit comments

Comments
 (0)