[lld] [LLD][COFF] Add -build-id flag to generate .buildid section. (PR #71433)

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 08:47:31 PST 2023


================
@@ -392,10 +392,13 @@ RUN: ld.lld -### foo.o -m i386pep -plugin C:/msys64/mingw64/bin/../lib/gcc/x86_6
 
 RUN: ld.lld -### foo.o -m i386pep 2>&1 | FileCheck -check-prefix=BUILD_ID %s
 RUN: ld.lld -### foo.o -m i386pep --build-id 2>&1 | FileCheck -check-prefix=BUILD_ID %s
-BUILD_ID:-build-id
+BUILD_ID: -build-id
+BUILD_ID-NOT: -build-id:no
----------------
ZequanWu wrote:

Thanks for catching it, I tested with `-opt:noref` on BUILD_ID-NOT, and it detects that, so I thought it will works for `-build-id:no`. 
Updated to use `BUILD_ID: -build-id{{ }}`

https://github.com/llvm/llvm-project/pull/71433


More information about the llvm-commits mailing list