Lines 1-14
Link Here
|
1 |
--- interpreter/cling/lib/Interpreter/CIFactory.cpp.orig 2024-05-30 18:22:02 UTC |
1 |
--- interpreter/cling/lib/Interpreter/CIFactory.cpp.orig 2024-06-24 15:02:26 UTC |
2 |
+++ interpreter/cling/lib/Interpreter/CIFactory.cpp |
2 |
+++ interpreter/cling/lib/Interpreter/CIFactory.cpp |
3 |
@@ -699,6 +699,11 @@ namespace { |
3 |
@@ -699,6 +699,25 @@ namespace { |
4 |
clingIncLoc.str().str(), MOverlay, |
4 |
clingIncLoc.str().str(), MOverlay, |
5 |
/*RegisterModuleMap=*/ true, |
5 |
/*RegisterModuleMap=*/ true, |
6 |
/*AllowModulemapOverride=*/ false); |
6 |
/*AllowModulemapOverride=*/ false); |
7 |
+#elif __FreeBSD__ // See 'FreeBSD port maintainer note' in core/clingutils/CMakeLists.txt |
7 |
+#elif __FreeBSD__ |
8 |
+ maybeAppendOverlayEntry(stdIncLoc.str(), "std_fbsd.modulemap", |
8 |
+ auto fvMajor = Triple.getOSVersion().getMajor(); |
|
|
9 |
+ auto fvMinor = Triple.getOSVersion().getMinor(); |
10 |
+ // Same issue on FreeBSD 13.3+, 14.1+ and 15+ as introduced in MacOS sdk 15.3 ('core/clingutils/CMakeLists.txt') |
11 |
+ if ((fvMajor == 13 && fvMinor >= 3) || (fvMajor == 14 && fvMinor >= 1) || fvMajor >= 15) { |
12 |
+ maybeAppendOverlayEntry(stdIncLoc.str(), "std_darwin.modulemap", |
13 |
+ clingIncLoc.str().str(), MOverlay, |
14 |
+ /*RegisterModuleMap=*/ true, |
15 |
+ /*AllowModulemapOverride=*/ false); |
16 |
+ } else { |
17 |
+ maybeAppendOverlayEntry(stdIncLoc.str(), "std.modulemap", |
18 |
+ clingIncLoc.str().str(), MOverlay, |
19 |
+ /*RegisterModuleMap=*/ true, |
20 |
+ /*AllowModulemapOverride=*/true); |
21 |
+ } |
22 |
+ maybeAppendOverlayEntry(cIncLoc.str(), "libc.modulemap", |
9 |
+ clingIncLoc.str().str(), MOverlay, |
23 |
+ clingIncLoc.str().str(), MOverlay, |
10 |
+ /*RegisterModuleMap=*/ true, |
24 |
+ /*RegisterModuleMap=*/ true, |
11 |
+ /*AllowModulemapOverride=*/ false); |
25 |
+ /*AllowModulemapOverride=*/true); |
12 |
#else |
26 |
#else |
13 |
maybeAppendOverlayEntry(cIncLoc.str(), "libc.modulemap", |
27 |
maybeAppendOverlayEntry(cIncLoc.str(), "libc.modulemap", |
14 |
clingIncLoc.str().str(), MOverlay, |
28 |
clingIncLoc.str().str(), MOverlay, |