[clang] 5fe4558 - [test] Add --sysroot= for -fuse-ld=gold test

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 29 20:00:39 PDT 2023


Author: Fangrui Song
Date: 2023-07-29T20:00:34-07:00
New Revision: 5fe45586d9903447a6c0f1645ecd1eabe7882adf

URL: https://github.com/llvm/llvm-project/commit/5fe45586d9903447a6c0f1645ecd1eabe7882adf
DIFF: https://github.com/llvm/llvm-project/commit/5fe45586d9903447a6c0f1645ecd1eabe7882adf.diff

LOG: [test] Add --sysroot= for -fuse-ld=gold test

Similar to abae53f43f0d1da8d8e421f4a628d7ec64d6e365 for lld by using -B.

Added: 
    

Modified: 
    clang/test/Driver/opt-record.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/opt-record.c b/clang/test/Driver/opt-record.c
index eed0653f6ca27e..220f5db7fbca2c 100644
--- a/clang/test/Driver/opt-record.c
+++ b/clang/test/Driver/opt-record.c
@@ -48,7 +48,7 @@
 
 // Pass-through:
 // RUN: %clang --target=x86_64-linux -### -fuse-ld=lld -B%S/Inputs/lld -flto -fdiagnostics-hotness-threshold=100 -fsave-optimization-record -foptimization-record-passes=inline %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS-A
-// RUN: %clang --target=x86_64-linux -### -o FOO -fuse-ld=gold -flto -fdiagnostics-hotness-threshold=100 -fsave-optimization-record -foptimization-record-passes=inline %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS
+// RUN: %clang --target=x86_64-linux -### -o FOO --sysroot=%S/Inputs/basic_cross_linux_tree -fuse-ld=gold -flto -fdiagnostics-hotness-threshold=100 -fsave-optimization-record -foptimization-record-passes=inline %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS
 // RUN: %clang --target=x86_64-linux -### -o FOO -fuse-ld=lld -B%S/Inputs/lld -flto=thin -fdiagnostics-hotness-threshold=100 -fsave-optimization-record=some-format -foptimization-record-file=FOO.txt %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS-CUSTOM
 // RUN: %clang --target=x86_64-linux -### -o FOO -fuse-ld=lld -B%S/Inputs/lld -flto=thin -fdiagnostics-hotness-threshold=100 -Rpass=inline -Rpass-missed=inline -Rpass-analysis=inline %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS-RPASS
 // RUN: %clang --target=x86_64-linux -### -o FOO -fuse-ld=lld -B%S/Inputs/lld -flto=thin -fdiagnostics-hotness-threshold=auto -Rpass=inline -Rpass-missed=inline -Rpass-analysis=inline %s 2>&1 | FileCheck %s -check-prefix=CHECK-PASS-AUTO


        


More information about the cfe-commits mailing list