mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-15 18:36:27 +00:00

We used to have a flag to enable module maps, and two more flags to enable implicit module maps. This is all redundant; we don't need any flag for enabling module maps in the abstract, and we don't usually have -fno- flags for -cc1. We now have just a single flag, -fimplicit-module-maps, that enables implicitly searching the file system for module map files and loading them. The driver interface is unchanged for now. We should probably rename -fmodule-maps to -fimplicit-module-maps at some point. llvm-svn: 239789
14 lines
739 B
C
14 lines
739 B
C
// RUN: rm -rf %t
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c -fmodules-cache-path=%t -F %S/Inputs %s 2>&1 | FileCheck %s
|
|
// FIXME: When we have a syntax for modules in C, use that.
|
|
@import MutuallyRecursive1;
|
|
|
|
// CHECK: While building module 'MutuallyRecursive1' imported from
|
|
// CHECK: While building module 'MutuallyRecursive2' imported from
|
|
// CHECK: MutuallyRecursive2.h:3:9: fatal error: cyclic dependency in module 'MutuallyRecursive1': MutuallyRecursive1 -> MutuallyRecursive2 -> MutuallyRecursive1
|
|
// CHECK: MutuallyRecursive1.h:2:9: fatal error: could not build module 'MutuallyRecursive2'
|
|
// CHECK: cycles.c:4:9: fatal error: could not build module 'MutuallyRecursive1'
|
|
// CHECK: 3 errors generated
|
|
|
|
|