[clang] [Driver] Implement ToolChain on Haiku (PR #66038)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 19 21:38:33 PDT 2023


================
@@ -128,8 +253,14 @@ void Haiku::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
                    concat(getDriver().SysRoot, "/boot/system/develop/headers/c++/v1"));
 }
 
-void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
-                                     llvm::opt::ArgStringList &CC1Args) const {
-  addLibStdCXXIncludePaths(concat(getDriver().SysRoot, "/boot/system/develop/headers/c++"),
-                           getTriple().str(), "", DriverArgs, CC1Args);
+void Haiku::addClangTargetOptions(const ArgList &DriverArgs,
+                                    ArgStringList &CC1Args,
+                                    Action::OffloadKind) const {
+  if (!DriverArgs.hasFlag(options::OPT_fuse_init_array,
----------------
MaskRay wrote:

Does Haiku need `.ctors`/`/`.dtors` compatibility?

https://github.com/llvm/llvm-project/pull/66038


More information about the cfe-commits mailing list