Skip to content

Commit c4fdf33

Browse files
committed
[cling] Restrict BuiltinHeadersInSystemModules to non-Apple
It was introduced in commit c28b205 during the upgrade to LLVM 18 to fix the build on (basically) all platforms, and this remains true on Linux. For Apple however, the newest MacOSX27.0.sdk is incomaptible and the option must not be set.
1 parent daf9907 commit c4fdf33

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

interpreter/cling/lib/Interpreter/CIFactory.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ namespace {
434434
}
435435

436436
//Opts.Modules = 1;
437+
#ifndef __APPLE__
437438
Opts.BuiltinHeadersInSystemModules = 1;
439+
#endif
438440

439441
// See test/CodeUnloading/PCH/VTables.cpp which implicitly compares clang
440442
// to cling lang options. They should be the same, we should not have to

0 commit comments

Comments
 (0)