Author: Alexandre Ganea
Date: 2021-12-21T11:54:19-05:00
New Revision: 00ec441253048f5e30540ea26bb0a28c42a5fc18

URL: 
https://github.com/llvm/llvm-project/commit/00ec441253048f5e30540ea26bb0a28c42a5fc18
DIFF: 
https://github.com/llvm/llvm-project/commit/00ec441253048f5e30540ea26bb0a28c42a5fc18.diff

LOG: [Clang] debug-info-objname.cpp test: explictly encode a x86 target when 
using %clang_cl to avoid falling back to a native CPU triple.

Added: 
    

Modified: 
    clang/test/CodeGenCXX/debug-info-objname.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCXX/debug-info-objname.cpp 
b/clang/test/CodeGenCXX/debug-info-objname.cpp
index 078d2338bcff7..1a9a6cfa2081e 100644
--- a/clang/test/CodeGenCXX/debug-info-objname.cpp
+++ b/clang/test/CodeGenCXX/debug-info-objname.cpp
@@ -1,34 +1,32 @@
-// REQUIRES: system-windows
-
 // RUN: cp %s %T/debug-info-objname.cpp
 // RUN: cd %T
 
 // No output file provided, input file is relative, we emit an absolute path 
(MSVC behavior).
-// RUN: %clang_cl /c /Z7 -nostdinc debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
debug-info-objname.cpp
 // RUN: llvm-pdbutil dump -all debug-info-objname.obj | FileCheck %s 
--check-prefix=ABSOLUTE
 
 // No output file provided, input file is absolute, we emit an absolute path 
(MSVC behavior).
-// RUN: %clang_cl /c /Z7 -nostdinc -- %T/debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc -- 
%T/debug-info-objname.cpp
 // RUN: llvm-pdbutil dump -all debug-info-objname.obj | FileCheck %s 
--check-prefix=ABSOLUTE
 
 // The output file is provided as an absolute path, we emit an absolute path.
-// RUN: %clang_cl /c /Z7 -nostdinc /Fo%T/debug-info-objname.obj -- 
%T/debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
/Fo%T/debug-info-objname.obj -- %T/debug-info-objname.cpp
 // RUN: llvm-pdbutil dump -all debug-info-objname.obj | FileCheck %s 
--check-prefix=ABSOLUTE
 
 // The output file is provided as relative path, -working-dir is provided, we 
emit an absolute path.
-// RUN: %clang_cl /c /Z7 -nostdinc -working-dir=%T debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
-working-dir=%T debug-info-objname.cpp
 // RUN: llvm-pdbutil dump -all debug-info-objname.obj | FileCheck %s 
--check-prefix=ABSOLUTE
 
 // The input file name is relative and we specify -fdebug-compilation-dir, we 
emit a relative path.
-// RUN: %clang_cl /c /Z7 -nostdinc -fdebug-compilation-dir=. 
debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
-fdebug-compilation-dir=. debug-info-objname.cpp
 // RUN: llvm-pdbutil dump -all debug-info-objname.obj | FileCheck %s 
--check-prefix=RELATIVE
 
 // Ensure /FA emits an .asm file which contains the path to the final .obj, 
not the .asm
-// RUN: %clang_cl /c /Z7 -nostdinc -fdebug-compilation-dir=. /FA 
debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
-fdebug-compilation-dir=. /FA debug-info-objname.cpp
 // RUN: cat debug-info-objname.asm | FileCheck %s --check-prefix=ASM
 
 // Same thing for -save-temps
-// RUN: %clang_cl /c /Z7 -nostdinc -fdebug-compilation-dir=. 
/clang:-save-temps debug-info-objname.cpp
+// RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc 
-fdebug-compilation-dir=. /clang:-save-temps debug-info-objname.cpp
 // RUN: cat debug-info-objname.asm | FileCheck %s --check-prefix=ASM
 
 int main() {


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to