@@ -35,10 +35,10 @@ static std::optional<Path> getActualModuleMapPath(
35
35
36
36
Path result;
37
37
38
- StringRef SDKPath = Opts.getSDKPath ();
39
- if (!SDKPath. empty ()) {
40
- result.append (SDKPath. begin (), SDKPath. end ());
41
- llvm::sys::path::append (result, " usr " , " lib " , " swift " );
38
+ if (! Opts.RuntimeResourcePath . empty ()) {
39
+ result. clear ();
40
+ result.append (Opts. RuntimeResourcePath . begin (),
41
+ Opts. RuntimeResourcePath . end () );
42
42
llvm::sys::path::append (result, platform);
43
43
if (isArchSpecific) {
44
44
llvm::sys::path::append (result, arch);
@@ -52,10 +52,10 @@ static std::optional<Path> getActualModuleMapPath(
52
52
return result;
53
53
}
54
54
55
- if (! Opts.RuntimeResourcePath . empty ()) {
56
- result. clear ();
57
- result.append (Opts. RuntimeResourcePath . begin (),
58
- Opts. RuntimeResourcePath . end () );
55
+ StringRef SDKPath = Opts.getSDKPath ();
56
+ if (!SDKPath. empty ()) {
57
+ result.append (SDKPath. begin (), SDKPath. end ());
58
+ llvm::sys::path::append (result, " usr " , " lib " , " swift " );
59
59
llvm::sys::path::append (result, platform);
60
60
if (isArchSpecific) {
61
61
llvm::sys::path::append (result, arch);
0 commit comments