File tree Expand file tree Collapse file tree 12 files changed +101
-100
lines changed Expand file tree Collapse file tree 12 files changed +101
-100
lines changed Original file line number Diff line number Diff line change 29
29
"%{clang-tidy}" ,
30
30
"%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin" ,
31
31
"%{cxx}" ,
32
- "%{flags} %{compile_flags} %{module_flags} " ,
32
+ "%{flags} %{compile_flags}" ,
33
33
"std" ,
34
34
)
35
35
Original file line number Diff line number Diff line change 29
29
"%{clang-tidy}" ,
30
30
"%{test-tools}/clang_tidy_checks/libcxx-tidy.plugin" ,
31
31
"%{cxx}" ,
32
- "%{flags} %{compile_flags} %{module_flags} " ,
32
+ "%{flags} %{compile_flags}" ,
33
33
"std.compat" ,
34
34
)
35
35
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- // Make sure that the module flags are empty when no module is supplied .
9
+ // Make sure that the compile flags contain no module information .
10
10
11
- // MODULES:
12
- // RUN: echo "%{module_flags}" | grep "^$"
11
+ // MODULE_DEPENDENCIES:
12
+
13
+ // RUN: echo "%{compile_flags}" | grep -v -- "-fprebuilt-module-path="
14
+ // RUN: echo "%{compile_flags}" | grep -v "std.pcm"
15
+ // RUN: echo "%{compile_flags}" | grep -v "std.compat.pcm"
Original file line number Diff line number Diff line change 10
10
// UNSUPPORTED: clang-modules-build
11
11
// UNSUPPORTED: gcc
12
12
13
- // XFAIL: has-no-module-support
13
+ // XFAIL: has-no-cxx- module-support
14
14
15
- // Make sure that the module flags contain the expected elements.
15
+ // Make sure that the compile flags contain the expected elements.
16
16
// The tests only look for the expected components and not the exact flags.
17
17
// Otherwise changing the location of the module breaks this test.
18
18
19
- // MODULES : std std.compat
20
- //
21
- // RUN: echo "%{module_flags }" | grep -- "-fprebuilt-module-path="
22
- // RUN: echo "%{module_flags }" | grep "std.pcm"
23
- // RUN: echo "%{module_flags }" | grep "std.compat.pcm"
19
+ // MODULE_DEPENDENCIES : std std.compat
20
+
21
+ // RUN: echo "%{compile_flags }" | grep -- "-fprebuilt-module-path="
22
+ // RUN: echo "%{compile_flags }" | grep "std.pcm"
23
+ // RUN: echo "%{compile_flags }" | grep "std.compat.pcm"
Original file line number Diff line number Diff line change 10
10
// UNSUPPORTED: clang-modules-build
11
11
// UNSUPPORTED: gcc
12
12
13
- // XFAIL: has-no-module-support
13
+ // XFAIL: has-no-cxx- module-support
14
14
15
- // Make sure that the module flags contain the expected elements.
15
+ // Make sure that the compile flags contain the expected elements.
16
16
// The tests only look for the expected components and not the exact flags.
17
17
// Otherwise changing the location of the module breaks this test.
18
18
19
- // MODULES : std
20
- //
21
- // RUN: echo "%{module_flags }" | grep -- "-fprebuilt-module-path="
22
- // RUN: echo "%{module_flags }" | grep "std.pcm"
19
+ // MODULE_DEPENDENCIES : std
20
+
21
+ // RUN: echo "%{compile_flags }" | grep -- "-fprebuilt-module-path="
22
+ // RUN: echo "%{compile_flags }" | grep "std.pcm"
23
23
24
24
// The std module should not provide the std.compat module
25
- // RUN: echo "%{module_flags }" | grep -v "std.compat.pcm"
25
+ // RUN: echo "%{compile_flags }" | grep -v "std.compat.pcm"
Original file line number Diff line number Diff line change 10
10
// UNSUPPORTED: clang-modules-build
11
11
// UNSUPPORTED: gcc
12
12
13
- // XFAIL: has-no-module-support
13
+ // XFAIL: has-no-cxx- module-support
14
14
15
- // Make sure that the module flags contain the expected elements.
15
+ // Make sure that the compile flags contain the expected elements.
16
16
// The tests only look for the expected components and not the exact flags.
17
17
// Otherwise changing the location of the module breaks this test.
18
18
19
- // MODULES : std.compat
20
- //
21
- // RUN: echo "%{module_flags }" | grep -- "-fprebuilt-module-path="
22
- // RUN: echo "%{module_flags }" | grep "std.compat.pcm"
19
+ // MODULE_DEPENDENCIES : std.compat
20
+
21
+ // RUN: echo "%{compile_flags }" | grep -- "-fprebuilt-module-path="
22
+ // RUN: echo "%{compile_flags }" | grep "std.compat.pcm"
23
23
24
24
// It's unspecified whether std.compat is built on the std module.
25
25
// Therefore don't test its presence
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
// UNSUPPORTED: clang-modules-build
11
11
// UNSUPPORTED: gcc
12
12
13
- // XFAIL: has-no-module-support
13
+ // XFAIL: has-no-cxx- module-support
14
14
15
15
// A minimal test to validate import works.
16
16
17
- // MODULES : std.compat
17
+ // MODULE_DEPENDENCIES : std.compat
18
18
19
19
import std.compat;
20
20
Original file line number Diff line number Diff line change 10
10
// UNSUPPORTED: clang-modules-build
11
11
// UNSUPPORTED: gcc
12
12
13
- // XFAIL: has-no-module-support
13
+ // XFAIL: has-no-cxx- module-support
14
14
15
15
// A minimal test to validate import works.
16
16
17
- // MODULES : std
17
+ // MODULE_DEPENDENCIES : std
18
18
19
19
import std;
20
20
Original file line number Diff line number Diff line change @@ -319,8 +319,8 @@ def _getAndroidDeviceApi(cfg):
319
319
),
320
320
# Whether module support for the platform is available.
321
321
Feature (
322
- name = "has-no-module-support" ,
323
- # The libc of these platforms have functions with internal linkages .
322
+ name = "has-no-cxx- module-support" ,
323
+ # The libc of these platforms have functions with internal linkage .
324
324
# This is not allowed per C11 7.1.2 Standard headers/6
325
325
# Any declaration of a library function shall have external linkage.
326
326
when = lambda cfg : "__ANDROID__" in compilerMacros (cfg )
You can’t perform that action at this time.
0 commit comments