r352537 - Fix the tests from r350970
Steven Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 29 12:13:02 PST 2019
Author: steven_wu
Date: Tue Jan 29 12:13:02 2019
New Revision: 352537
URL: http://llvm.org/viewvc/llvm-project?rev=352537&view=rev
Log:
Fix the tests from r350970
Relax the tests from r350970 to allow non-standard path for ld.
Modified:
cfe/trunk/test/Driver/darwin-ld-lto.c
Modified: cfe/trunk/test/Driver/darwin-ld-lto.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/darwin-ld-lto.c?rev=352537&r1=352536&r2=352537&view=diff
==============================================================================
--- cfe/trunk/test/Driver/darwin-ld-lto.c (original)
+++ cfe/trunk/test/Driver/darwin-ld-lto.c Tue Jan 29 12:13:02 2019
@@ -22,9 +22,9 @@
// Check that -object_lto_path is passed correctly to ld64
// RUN: %clang -target x86_64-apple-darwin10 %s -flto=full -### 2>&1 | \
// RUN: FileCheck -check-prefix=FULL_LTO_OBJECT_PATH %s
-// FULL_LTO_OBJECT_PATH: /usr/bin/ld
+// FULL_LTO_OBJECT_PATH: {{ld(.exe)?"}}
// FULL_LTO_OBJECT_PATH-SAME: "-object_path_lto" "{{[a-zA-Z0-9_\/]+\/cc\-[a-zA-Z0-9_]+.o}}"
// RUN: %clang -target x86_64-apple-darwin10 %s -flto=thin -### 2>&1 | \
// RUN: FileCheck -check-prefix=THIN_LTO_OBJECT_PATH %s
-// THIN_LTO_OBJECT_PATH: /usr/bin/ld
+// THIN_LTO_OBJECT_PATH: {{ld(.exe)?"}}
// THIN_LTO_OBJECT_PATH-SAME: "-object_path_lto" "{{[a-zA-Z0-9_\/]+\/thinlto\-[a-zA-Z0-9_]+}}"
More information about the cfe-commits
mailing list