@@ -21,6 +21,8 @@ using namespace llvm::opt;
21
21
Haiku::Haiku (const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
22
22
: Generic_ELF(D, Triple, Args) {
23
23
24
+ getFilePaths ().push_back (concat (getDriver ().SysRoot , " /boot/system/lib" ));
25
+ getFilePaths ().push_back (concat (getDriver ().SysRoot , " /boot/system/develop/lib" ));
24
26
}
25
27
26
28
void Haiku::AddClangSystemIncludeArgs (const llvm::opt::ArgList &DriverArgs,
@@ -52,49 +54,82 @@ void Haiku::AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
52
54
return ;
53
55
}
54
56
55
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/non-packaged/develop/headers" );
56
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os" );
57
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/app" );
58
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/device" );
59
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/drivers" );
60
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/game" );
61
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/interface" );
62
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/kernel" );
63
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/locale" );
64
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/mail" );
65
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/media" );
66
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/midi" );
67
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/midi2" );
68
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/net" );
69
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/opengl" );
70
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/storage" );
71
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/support" );
72
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/translation" );
73
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/graphics" );
74
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/input_server" );
75
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/mail_daemon" );
76
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/registrar" );
77
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/screen_saver" );
78
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/add-ons/tracker" );
79
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/be_apps/Deskbar" );
80
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/be_apps/NetPositive" );
81
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/os/be_apps/Tracker" );
82
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/3rdparty" );
83
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/bsd" );
84
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/glibc" );
85
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/gnu" );
86
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers/posix" );
87
- addSystemInclude (DriverArgs, CC1Args, D.SysRoot + " /boot/system/develop/headers" );
57
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
58
+ " /boot/system/non-packaged/develop/headers" ));
59
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
60
+ " /boot/system/develop/headers/os" ));
61
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
62
+ " /boot/system/develop/headers/os/app" ));
63
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
64
+ " /boot/system/develop/headers/os/device" ));
65
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
66
+ " /boot/system/develop/headers/os/drivers" ));
67
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
68
+ " /boot/system/develop/headers/os/game" ));
69
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
70
+ " /boot/system/develop/headers/os/interface" ));
71
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
72
+ " /boot/system/develop/headers/os/kernel" ));
73
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
74
+ " /boot/system/develop/headers/os/locale" ));
75
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
76
+ " /boot/system/develop/headers/os/mail" ));
77
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
78
+ " /boot/system/develop/headers/os/media" ));
79
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
80
+ " /boot/system/develop/headers/os/midi" ));
81
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
82
+ " /boot/system/develop/headers/os/midi2" ));
83
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
84
+ " /boot/system/develop/headers/os/net" ));
85
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
86
+ " /boot/system/develop/headers/os/opengl" ));
87
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
88
+ " /boot/system/develop/headers/os/storage" ));
89
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
90
+ " /boot/system/develop/headers/os/support" ));
91
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
92
+ " /boot/system/develop/headers/os/translation" ));
93
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
94
+ " /boot/system/develop/headers/os/add-ons/graphics" ));
95
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
96
+ " /boot/system/develop/headers/os/add-ons/input_server" ));
97
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
98
+ " /boot/system/develop/headers/os/add-ons/mail_daemon" ));
99
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
100
+ " /boot/system/develop/headers/os/add-ons/registrar" ));
101
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
102
+ " /boot/system/develop/headers/os/add-ons/screen_saver" ));
103
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
104
+ " /boot/system/develop/headers/os/add-ons/tracker" ));
105
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
106
+ " /boot/system/develop/headers/os/be_apps/Deskbar" ));
107
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
108
+ " /boot/system/develop/headers/os/be_apps/NetPositive" ));
109
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
110
+ " /boot/system/develop/headers/os/be_apps/Tracker" ));
111
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
112
+ " /boot/system/develop/headers/3rdparty" ));
113
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
114
+ " /boot/system/develop/headers/bsd" ));
115
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
116
+ " /boot/system/develop/headers/glibc" ));
117
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
118
+ " /boot/system/develop/headers/gnu" ));
119
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
120
+ " /boot/system/develop/headers/posix" ));
121
+ addSystemInclude (DriverArgs, CC1Args, concat (D.SysRoot ,
122
+ " /boot/system/develop/headers" ));
88
123
}
89
124
90
125
void Haiku::addLibCxxIncludePaths (const llvm::opt::ArgList &DriverArgs,
91
126
llvm::opt::ArgStringList &CC1Args) const {
92
127
addSystemInclude (DriverArgs, CC1Args,
93
- getDriver ().SysRoot + " / system/develop/headers/c++/v1" );
128
+ concat ( getDriver ().SysRoot , " /boot/ system/develop/headers/c++/v1" ) );
94
129
}
95
130
96
131
void Haiku::addLibStdCxxIncludePaths (const llvm::opt::ArgList &DriverArgs,
97
132
llvm::opt::ArgStringList &CC1Args) const {
98
- addLibStdCXXIncludePaths (getDriver ().SysRoot + " / system/develop/headers/c++" ,
133
+ addLibStdCXXIncludePaths (concat ( getDriver ().SysRoot , " /boot/ system/develop/headers/c++" ) ,
99
134
getTriple ().str (), " " , DriverArgs, CC1Args);
100
135
}
0 commit comments