[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-21 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

Thanks smeenai!   Any chance of this one getting into 7.x.x?   It's technically 
a bug fix... I think it's the last major hurdle to Haiku compiling (easily) 
with clang vs gcc.


Repository:
  rC Clang

https://reviews.llvm.org/D53696



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-21 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

Indeed. I agree the _GLIBCXX_USE_FLOAT128 is misplaced there.   That comes from 
config.h in libstdc++.  That's working around an issue in Haiku's build 
(libstdc++ is built by gcc, but then we try and use it with clang later)
I can remove that.

Is the __FLOAT128__ desireable?


Repository:
  rC Clang

https://reviews.llvm.org/D53696



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-25 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

sorry, busy weekend. If you find the time feel free :-)

- _GLIBCXX_USE_FLOAT128 can (and should) go
- everything else is valid per the discussions here.

Otherwise i'll pick up in the next few days and add the requested context as 
well.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53696/new/

https://reviews.llvm.org/D53696



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D54901: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-26 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 created this revision.
kallisti5 added reviewers: chandlerc, joerg, compnerd, kristina, js.
kallisti5 added a project: clang.
Herald added a subscriber: cfe-commits.

A revision on https://reviews.llvm.org/D53696 from another user.


Repository:
  rC Clang

https://reviews.llvm.org/D54901

Files:
  lib/Basic/Targets/OSTargets.h
  test/CodeGenCXX/float128-declarations.cpp


Index: test/CodeGenCXX/float128-declarations.cpp
===
--- test/CodeGenCXX/float128-declarations.cpp
+++ test/CodeGenCXX/float128-declarations.cpp
@@ -16,6 +16,10 @@
 // RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
 // RUN: %clang_cc1 -emit-llvm -triple x86_64-pc-solaris2.11 -std=c++11 \
 // RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
+// RUN: %clang_cc1 -emit-llvm -triple i586-pc-haiku -std=c++11 \
+// RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
+// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-haiku -std=c++11 \
+// RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
 //
 /*  Various contexts where type __float128 can appear. The different check
 prefixes are due to different mangling on X86 and different calling
Index: lib/Basic/Targets/OSTargets.h
===
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -257,6 +257,9 @@
 Builder.defineMacro("__HAIKU__");
 Builder.defineMacro("__ELF__");
 DefineStd(Builder, "unix", Opts);
+if (this->HasFloat128) {
+  Builder.defineMacro("__FLOAT128__");
+}
   }
 
 public:
@@ -267,6 +270,14 @@
 this->PtrDiffType = TargetInfo::SignedLong;
 this->ProcessIDType = TargetInfo::SignedLong;
 this->TLSSupported = false;
+switch (Triple.getArch()) {
+default:
+  break;
+case llvm::Triple::x86:
+case llvm::Triple::x86_64:
+  this->HasFloat128 = true;
+  break;
+}
   }
 };
 


Index: test/CodeGenCXX/float128-declarations.cpp
===
--- test/CodeGenCXX/float128-declarations.cpp
+++ test/CodeGenCXX/float128-declarations.cpp
@@ -16,6 +16,10 @@
 // RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
 // RUN: %clang_cc1 -emit-llvm -triple x86_64-pc-solaris2.11 -std=c++11 \
 // RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
+// RUN: %clang_cc1 -emit-llvm -triple i586-pc-haiku -std=c++11 \
+// RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
+// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-haiku -std=c++11 \
+// RUN:   %s -o - | FileCheck %s -check-prefix=CHECK-X86
 //
 /*  Various contexts where type __float128 can appear. The different check
 prefixes are due to different mangling on X86 and different calling
Index: lib/Basic/Targets/OSTargets.h
===
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -257,6 +257,9 @@
 Builder.defineMacro("__HAIKU__");
 Builder.defineMacro("__ELF__");
 DefineStd(Builder, "unix", Opts);
+if (this->HasFloat128) {
+  Builder.defineMacro("__FLOAT128__");
+}
   }
 
 public:
@@ -267,6 +270,14 @@
 this->PtrDiffType = TargetInfo::SignedLong;
 this->ProcessIDType = TargetInfo::SignedLong;
 this->TLSSupported = false;
+switch (Triple.getArch()) {
+default:
+  break;
+case llvm::Triple::x86:
+case llvm::Triple::x86_64:
+  this->HasFloat128 = true;
+  break;
+}
   }
 };
 
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-26 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

I don't have permission to update this request, so I created 
https://reviews.llvm.org/D54901 with the updates recommended.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53696/new/

https://reviews.llvm.org/D53696



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D54901: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-12-05 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

Looks good to me. Could you commit for me? (no access)

Thanks!


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54901/new/

https://reviews.llvm.org/D54901



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49480: Haiku: support for secondary arch

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 created this revision.
Herald added subscribers: cfe-commits, mgorny.

Enables Haiku to build llvm for secondary architectures.


Repository:
  rC Clang

https://reviews.llvm.org/D49480

Files:
  CMakeLists.txt
  lib/Driver/ToolChains/Haiku.cpp
  lib/Frontend/InitHeaderSearch.cpp


Index: lib/Frontend/InitHeaderSearch.cpp
===
--- lib/Frontend/InitHeaderSearch.cpp
+++ lib/Frontend/InitHeaderSearch.cpp
@@ -238,7 +238,19 @@
   if (HSOpts.UseBuiltinIncludes) {
 // Ignore the sys root, we *always* look for clang headers relative to
 // supplied path.
+#ifdef HAIKU_HYBRID_SECONDARY
+// Remove version from foo/lib/clang/version
+StringRef Ver = llvm::sys::path::filename(HSOpts.ResourceDir);
+StringRef NoVer = llvm::sys::path::parent_path(HSOpts.ResourceDir);
+// Remove clang from foo/lib/clang
+StringRef Clang = llvm::sys::path::filename(NoVer);
+SmallString<128> P = llvm::sys::path::parent_path(NoVer);
+
+// Get foo/include/c++/v1
+llvm::sys::path::append(P, HAIKU_HYBRID_SECONDARY, Clang, Ver);
+#else
 SmallString<128> P = StringRef(HSOpts.ResourceDir);
+#endif
 llvm::sys::path::append(P, "include");
 AddUnmappedPath(P, ExternCSystem, false);
   }
@@ -272,7 +284,12 @@
   }
 
   case llvm::Triple::Haiku:
+#ifdef HAIKU_HYBRID_SECONDARY
+AddPath("/boot/system/non-packaged/develop/headers/" 
HAIKU_HYBRID_SECONDARY,
+System, false);
+#else
 AddPath("/boot/system/non-packaged/develop/headers", System, false);
+#endif
 AddPath("/boot/system/develop/headers/os", System, false);
 AddPath("/boot/system/develop/headers/os/app", System, false);
 AddPath("/boot/system/develop/headers/os/arch", System, false);
@@ -304,6 +321,13 @@
 AddPath("/boot/system/develop/headers/bsd", System, false);
 AddPath("/boot/system/develop/headers/glibc", System, false);
 AddPath("/boot/system/develop/headers/posix", System, false);
+#ifdef HAIKU_HYBRID_SECONDARY
+AddPath("/boot/system/develop/headers/" HAIKU_HYBRID_SECONDARY, System, 
false);
+AddPath("/boot/system/develop/headers/" HAIKU_HYBRID_SECONDARY "/os", 
System,
+false);
+AddPath("/boot/system/develop/headers/" HAIKU_HYBRID_SECONDARY 
"/os/opengl",
+System, false);
+#endif
 AddPath("/boot/system/develop/headers",  System, false);
 break;
   case llvm::Triple::RTEMS:
Index: lib/Driver/ToolChains/Haiku.cpp
===
--- lib/Driver/ToolChains/Haiku.cpp
+++ lib/Driver/ToolChains/Haiku.cpp
@@ -20,6 +20,13 @@
 Haiku::Haiku(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
   : Generic_ELF(D, Triple, Args) {
 
+#ifdef HAIKU_HYBRID_SECONDARY
+  getProgramPaths().insert(getProgramPaths().begin(), getDriver().SysRoot
+   + "/system/bin/" HAIKU_HYBRID_SECONDARY);
+  getFilePaths().clear();
+  getFilePaths().push_back(getDriver().SysRoot + "/system/lib/"
+   HAIKU_HYBRID_SECONDARY);
+#endif
 }
 
 void Haiku::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
@@ -30,6 +37,13 @@
 
 void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
  llvm::opt::ArgStringList &CC1Args) const {
+
+#ifdef HAIKU_HYBRID_SECONDARY
+  addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers"
+ HAIKU_HYBRID_SECONDARY "/c++", getTriple().str(), "", "", 
"",
+ DriverArgs, CC1Args);
+#else
   addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers/c++",
getTriple().str(), "", "", "", DriverArgs, CC1Args);
+#endif
 }
Index: CMakeLists.txt
===
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -412,6 +412,10 @@
   message(FATAL_ERROR "Cannot disable static analyzer while enabling ARCMT or 
Z3")
 endif()
 
+if(DEFINED HAIKU_HYBRID_SECONDARY)
+  add_definitions(-DHAIKU_HYBRID_SECONDARY=${HAIKU_HYBRID_SECONDARY})
+endif()
+
 if(CLANG_ANALYZER_BUILD_Z3)
   find_package(Z3 4.5)
   if(Z3_FOUND)


Index: lib/Frontend/InitHeaderSearch.cpp
===
--- lib/Frontend/InitHeaderSearch.cpp
+++ lib/Frontend/InitHeaderSearch.cpp
@@ -238,7 +238,19 @@
   if (HSOpts.UseBuiltinIncludes) {
 // Ignore the sys root, we *always* look for clang headers relative to
 // supplied path.
+#ifdef HAIKU_HYBRID_SECONDARY
+// Remove version from foo/lib/clang/version
+StringRef Ver = llvm::sys::path::filename(HSOpts.ResourceDir);
+StringRef NoVer = llvm::sys::path::parent_path(HSOpts.ResourceDir);
+// Remove clang from foo/lib/clang
+StringRef Clang = llvm::sys::path::filename(NoVer);
+SmallString<128> P = llvm::sys::path::parent_path(NoVer);
+
+// Get foo/include/c++/v1
+llvm::sys::path::append(P, HAIKU_HYBRID_SECOND

[PATCH] D49480: Haiku: support for secondary arch

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

Original author is "Jerome Duval "  I don't have 
permission to modify this, can author be updated? (I don't have permission to)


Repository:
  rC Clang

https://reviews.llvm.org/D49480



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49481: Haiku: Enable thread-local storage and disable PIE by default

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 created this revision.
Herald added a subscriber: cfe-commits.

Repository:
  rC Clang

https://reviews.llvm.org/D49481

Files:
  lib/Basic/Targets/OSTargets.h
  lib/Driver/ToolChains/Haiku.h


Index: lib/Driver/ToolChains/Haiku.h
===
--- lib/Driver/ToolChains/Haiku.h
+++ lib/Driver/ToolChains/Haiku.h
@@ -23,9 +23,7 @@
   Haiku(const Driver &D, const llvm::Triple &Triple,
   const llvm::opt::ArgList &Args);

-  bool isPIEDefault() const override {
-return getTriple().getArch() == llvm::Triple::x86_64;
-  }
+  bool isPIEDefault() const override { return false; }

   void addLibCxxIncludePaths(
   const llvm::opt::ArgList &DriverArgs,
Index: lib/Basic/Targets/OSTargets.h
===
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -266,7 +266,6 @@
 this->IntPtrType = TargetInfo::SignedLong;
 this->PtrDiffType = TargetInfo::SignedLong;
 this->ProcessIDType = TargetInfo::SignedLong;
-this->TLSSupported = false;
   }
 };



Index: lib/Driver/ToolChains/Haiku.h
===
--- lib/Driver/ToolChains/Haiku.h
+++ lib/Driver/ToolChains/Haiku.h
@@ -23,9 +23,7 @@
   Haiku(const Driver &D, const llvm::Triple &Triple,
   const llvm::opt::ArgList &Args);

-  bool isPIEDefault() const override {
-return getTriple().getArch() == llvm::Triple::x86_64;
-  }
+  bool isPIEDefault() const override { return false; }

   void addLibCxxIncludePaths(
   const llvm::opt::ArgList &DriverArgs,
Index: lib/Basic/Targets/OSTargets.h
===
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -266,7 +266,6 @@
 this->IntPtrType = TargetInfo::SignedLong;
 this->PtrDiffType = TargetInfo::SignedLong;
 this->ProcessIDType = TargetInfo::SignedLong;
-this->TLSSupported = false;
   }
 };

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49481: Haiku: Enable thread-local storage and disable PIE by default

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

The original author is "Jerome Duval " I don't have 
permission to modify this, can the author be updated?


Repository:
  rC Clang

https://reviews.llvm.org/D49481



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49482: Haiku: add a test for haiku driver

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 created this revision.
Herald added a subscriber: cfe-commits.

Repository:
  rC Clang

https://reviews.llvm.org/D49482

Files:
  test/Driver/haiku.c


Index: test/Driver/haiku.c
===
--- /dev/null
+++ test/Driver/haiku.c
@@ -0,0 +1,11 @@
+// RUN: %clang -no-canonical-prefixes -target x86_64-unknown-haiku %s -### 2> 
%t.log
+// RUN: FileCheck --check-prefix=CHECK-X86_64 -input-file %t.log %s
+
+// CHECK-X86_64: clang{{.*}}" "-cc1" "-triple" "x86_64-unknown-haiku"
+// CHECK-X86_64: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
+
+// RUN: %clang -no-canonical-prefixes -target i586-pc-haiku %s -### 2> %t.log
+// RUN: FileCheck --check-prefix=CHECK-X86 -input-file %t.log %s
+
+// CHECK-X86: clang{{.*}}" "-cc1" "-triple" "i586-pc-haiku"
+// CHECK-X86: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"


Index: test/Driver/haiku.c
===
--- /dev/null
+++ test/Driver/haiku.c
@@ -0,0 +1,11 @@
+// RUN: %clang -no-canonical-prefixes -target x86_64-unknown-haiku %s -### 2> %t.log
+// RUN: FileCheck --check-prefix=CHECK-X86_64 -input-file %t.log %s
+
+// CHECK-X86_64: clang{{.*}}" "-cc1" "-triple" "x86_64-unknown-haiku"
+// CHECK-X86_64: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
+
+// RUN: %clang -no-canonical-prefixes -target i586-pc-haiku %s -### 2> %t.log
+// RUN: FileCheck --check-prefix=CHECK-X86 -input-file %t.log %s
+
+// CHECK-X86: clang{{.*}}" "-cc1" "-triple" "i586-pc-haiku"
+// CHECK-X86: gcc{{.*}}" "-o" "a.out" "{{.*}}.o"
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49482: Haiku: add a test for haiku driver

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

Original author is "Jerome Duval "  I don't have 
permission to modify this, can author be updated?


Repository:
  rC Clang

https://reviews.llvm.org/D49482



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49480: Haiku: support for secondary arch

2018-07-18 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

No worries. I was wondering if this one would match llvm's goals.
Do you see any iteration of these changes that would be accepted? (not using 
define's, etc)

We currently support "hybrid" operating system builds where we compile a 
secondary toolchain / abi.

An current functional example of this is we offer a gcc2 compiler + support 
libraries, and then also offer a gcc7 compiler + support libraries.

  $ getarch
  x86_gcc2
  $ gcc --version
  ~gcc 2.95
  $ gcc test.c -o test
  $ ./test
  
  test is a functional binary generated by gcc2 and run using the gcc2 ABI + 
libraries.
  
  
  $ setarch x86
  $ getarch
  x86
  $ gcc --version
  ~gcc 7.3
  $ gcc test.c -o test
  $ ./test
  
  test is now a functional binary generated by gcc7 and run using the gcc7 
ABI's + libraries


Repository:
  rC Clang

https://reviews.llvm.org/D49480



___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


[PATCH] D49482: Haiku: add a test for haiku driver

2021-12-30 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 updated this revision to Diff 396674.
kallisti5 added a comment.
Herald added subscribers: luke957, s.egerton, simoncook.
Herald added a project: clang.

I've reworked these tests to be a lot more in-depth.   Both c and c++ are 
passing.  I plan on trying to get more of our clang / llvm patches upstream.. 
so this is the first step.

  ./bin/llvm-lit -asvv ../clang/test/Driver/haiku.c
  llvm-lit: 
/home/kallisti5/Code/llvm-project/llvm/utils/lit/lit/llvm/config.py:436: note: 
using clang: /home/kallisti5/Code/llvm-project/build/bin/clang
  PASS: Clang :: Driver/haiku.c (1 of 1)
  Script:
  --
  : 'RUN: at line 1';   /home/kallisti5/Code/llvm-project/build/bin/clang 
-no-canonical-prefixes -target x86_64-unknown-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c -### 2>&1  | 
/home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-X86_64 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c
  : 'RUN: at line 4';   /home/kallisti5/Code/llvm-project/build/bin/clang 
-no-canonical-prefixes -target i586-pc-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c -### 2>&1  | 
/home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-X86 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c
  : 'RUN: at line 7';   /home/kallisti5/Code/llvm-project/build/bin/clang 
-no-canonical-prefixes -target riscv64-unknown-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c -### 2>&1  | 
/home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-RV64 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.c
  --
  Exit Code: 0
  
  
  
  
  Testing Time: 0.07s
Passed: 1



  ./bin/llvm-lit -asvv ../clang/test/Driver/haiku.cpp
  llvm-lit: 
/home/kallisti5/Code/llvm-project/llvm/utils/lit/lit/llvm/config.py:436: note: 
using clang: /home/kallisti5/Code/llvm-project/build/bin/clang
  PASS: Clang :: Driver/haiku.cpp (1 of 1)
  Script:
  --
  : 'RUN: at line 1';   /home/kallisti5/Code/llvm-project/build/bin/clang 
--driver-mode=g++ -no-canonical-prefixes -target i586-pc-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp -### 
-stdlib=platform 2>&1  | /home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-X86 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp
  : 'RUN: at line 4';   /home/kallisti5/Code/llvm-project/build/bin/clang 
--driver-mode=g++ -no-canonical-prefixes -target x86_64-unknown-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp -### 
-stdlib=platform 2>&1  | /home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-X86_64 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp
  : 'RUN: at line 7';   /home/kallisti5/Code/llvm-project/build/bin/clang 
--driver-mode=g++ -no-canonical-prefixes -target riscv64-unknown-haiku  
--sysroot=/home/kallisti5/Code/llvm-project/clang/test/Driver/Inputs/basic_haiku_tree
 /home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp -### 
-stdlib=platform 2>&1  | /home/kallisti5/Code/llvm-project/build/bin/FileCheck 
--check-prefixes=CHECK,CHECK-RV64 
/home/kallisti5/Code/llvm-project/clang/test/Driver/haiku.cpp
  --
  Exit Code: 0
  
  
  
  
  Testing Time: 0.06s
Passed: 1


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49482/new/

https://reviews.llvm.org/D49482

Files:
  clang/test/Driver/Inputs/basic_haiku_tree/boot/system/develop/headers/.keep
  clang/test/Driver/Inputs/basic_haiku_tree/boot/system/develop/lib/crti.o
  clang/test/Driver/Inputs/basic_haiku_tree/boot/system/develop/lib/crtn.o
  clang/test/Driver/Inputs/basic_haiku_tree/boot/system/lib/.keep
  clang/test/Driver/haiku.c
  clang/test/Driver/haiku.cpp


Index: clang/test/Driver/haiku.cpp
===
--- /dev/null
+++ clang/test/Driver/haiku.cpp
@@ -0,0 +1,19 @@
+// RUN: %clangxx -no-canonical-prefixes -target i586-pc-haiku \
+// RUN: --sysroot=%S/Inputs/basic_haiku_tree %s -### -stdlib=platform 2>&1 \
+// RUN: | FileCheck --check-prefixes=CHECK,CHECK-X86 %s
+// RUN: %clangxx -no-canonical-prefixes -target x86_64-unknown-haiku \
+// RUN: --sysroot=%S/Inputs/basic_haiku_tree %s -### -stdlib=platform 2>&1 \
+// RUN: | FileCheck --check-prefixes=CHECK,CHECK-X86_64 %s
+// RUN: %clangxx -no-canonical-prefixes -target riscv64-unknown-haiku \
+// RUN: --sysroot=%S/Inputs/basic_haiku_tree

[PATCH] D49482: Haiku: add a test for haiku driver

2021-12-30 Thread Alexander von Gluck IV via Phabricator via cfe-commits
kallisti5 added a comment.

I should mention that there are no crt checks since the Haiku toolchain driver 
doesn't actually look for our crt's yet.

https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Haiku.cpp
vs
https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/NetBSD.cpp#L239

With the change above though (adding basic_haiku_tree)  i'm preparing for that 
in a future commit after our port is better up-streamed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D49482/new/

https://reviews.llvm.org/D49482

___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits