Skip to content

Commit e174da4

Browse files
committed
[Clang][IFS][Test] Work around in-process cc1 ASAN issues #2.
Using the same strategy as c38e425. D69825 revealed (introduced?) a problem when building with ASan, and some memory leaks somewhere. More details are available in the original patch. Looks like we missed one failing tests, this patch adds the workaround to this test as well.
1 parent d8acf88 commit e174da4

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

clang/test/Driver/cl-showfilenames.c

+12-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
// target Windows.
33
// REQUIRES: x86-registered-target
44

5-
// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
6-
// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
5+
// NOTE: -fno-integrated-cc1 has been added to work around an ASAN failure
6+
// caused by in-process cc1 invocation. Clang InterfaceStubs is not the
7+
// culprit, but Clang Interface Stubs' Driver pipeline setup uncovers an
8+
// existing ASAN issue when invoking multiple normal cc1 jobs along with
9+
// multiple Clang Interface Stubs cc1 jobs together.
10+
// There is currently a discussion of this going on at:
11+
// https://reviews.llvm.org/D69825
712

8-
// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s
9-
// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
13+
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
14+
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
15+
16+
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s
17+
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
1018

1119

1220
#pragma message "Hello"

0 commit comments

Comments
 (0)