zufuliu / llvm-utils

LLVM/Clang toolsets for Visual Studio 2022, 2019, 2017, 2015, 2013, 2012 and 2010.
Other
209 stars 35 forks source link

Update llvm-link.bat for LLVM 19 #15

Closed gitoss closed 1 month ago

gitoss commented 1 month ago

As of LLVM 19.1.2, there are a couple of other identical files that could be dedupe'd using https://github.com/zufuliu/llvm-utils/blob/main/llvm/llvm-link.bat

EDIT: ONLY for the (slower) -Windows-X64.tar.xz version, for the (faster) -x86_64-pc-windows-msvc.tar.xz ... see below.

DEL llvm-boltdiff.exe perf2bolt.exe
MKLINK llvm-boltdiff.exe llvm-bolt.exe
MKLINK perf2bolt.exe llvm-bolt.exe

DEL llvm-bitcode-strip.exe llvm-install-name-tool.exe llvm-objcopy.exe
MKLINK llvm-bitcode-strip.exe llvm-strip.exe
MKLINK llvm-install-name-tool.exe llvm-strip.exe
MKLINK llvm-objcopy.exe llvm-strip.exe

DEL llvm-otool.exe
MKLINK llvm-otool.exe llvm-objdump.exe

DEL llvm-readelf.exe
MKLINK llvm-readelf.exe llvm-readobj.exe

DEL llvm-windres.exe
MKLINK llvm-windres.exe llvm-rc.exe
zufuliu commented 1 month ago

https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.2/LLVM-19.1.2-win64.exe does not contains mentioned executables, do you use https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.2/clang+llvm-19.1.2-x86_64-pc-windows-msvc.tar.xz or https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.2/LLVM-19.1.2-Windows-X64.tar.xz ?

gitoss commented 1 month ago

https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.2/LLVM-19.1.2-win64.exe does not contains mentioned executables

I'M using the -Windows-X64.tar.xz ... and yes, because of the size difference vs. -win64.exe I was already wondering what the difference is because it's not explained on the LLVM release page (do you know)? I guess and -x86_64-pc-windows-msvc.tar.xz is a subset of -Windows-X64.tar.xz?

zufuliu commented 1 month ago

do you know

It's explained here at https://discourse.llvm.org/t/llvm-19-x-release-third-party-binaries/80374/30

gitoss commented 1 month ago

do you know

It's explained here at https://discourse.llvm.org/t/llvm-19-x-release-third-party-binaries/80374/30

Thanks - I second the statement "The situation is a bit confusing for everyone." ...

gitoss commented 1 month ago

I checked the -x86_64-pc-windows-msvc.tar.xz version, which seems to be the faster one according to the thread https://discourse.llvm.org/t/llvm-19-x-release-third-party-binaries/80374/30

There are a couple of more dupes than in the current llvm-del.bat script - but someone would have to double-check the overlap with the more/other dupes in -Windows-X64.tar.xz if the script would have to work for both...

zufuliu commented 1 month ago

There are a couple of more dupes than in the current llvm-del.bat script - but someone would have to double-check the overlap with the more/other dupes in -Windows-X64.tar.xz if the script would have to work for both...

Handled by commit 755ab29170b2e2dde36998478c230b993f431931 and 4e761af15c4cc856b4acb5be58b16d570dfee04b.