[haiku-commits] BRANCH mmadia-github.separate-build-environment - headers/build/posix_target/sys build/jam

  • From: mmadia-github.separate-build-environment <community@xxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 4 Aug 2012 13:49:13 +0200 (CEST)

added 2 changesets to branch 
'refs/remotes/mmadia-github/separate-build-environment'
old head: 86770f3727847fc6469931ffd550feaec30dec02
new head: da64f2f649f6fc52cee1bb3fbdbbceb6ebe9ed95

----------------------------------------------------------------------------

e67f018: Remove -nostdinc and -nostdinc++ from HOST_BE_API_C++FLAGS.
  
  All headers in headers/posix/ exist as empty headers in headers/build/posix/.

da64f2f: Implemented target_cdefs.h

                                        [ Matt Madia <mattmadia@xxxxxxxxx> ]

----------------------------------------------------------------------------

2 files changed, 67 insertions(+), 5 deletions(-)
build/jam/BuildSetup                          |    5 --
headers/build/posix_target/sys/target_cdefs.h |   67 +++++++++++++++++++++

############################################################################

Commit:      e67f0182fe27a3f5f6151de085ca0eded3251e74

Author:      Matt Madia <mattmadia@xxxxxxxxx>
Date:        Sat Aug  4 06:52:51 2012 UTC

Remove -nostdinc and -nostdinc++ from HOST_BE_API_C++FLAGS.

All headers in headers/posix/ exist as empty headers in headers/build/posix/.

----------------------------------------------------------------------------

diff --git a/build/jam/BuildSetup b/build/jam/BuildSetup
index 0f98f35..70228a8 100644
--- a/build/jam/BuildSetup
+++ b/build/jam/BuildSetup
@@ -926,12 +926,7 @@ if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
                [ FDirName $(HAIKU_TOP) headers build os support ]
                [ FDirName $(HAIKU_TOP) headers build private ]
        ;
-#      HOST_BE_API_CCFLAGS = -include BeOSBuildCompatibility.h ;
-#      NOTE: -nostdinc was taken from full-host-abstraction.diff
-#              uncertain if needed.
-       HOST_BE_API_CCFLAGS += -nostdinc ;
        HOST_BE_API_C++FLAGS = $(HOST_BE_API_CCFLAGS) ;
-       HOST_BE_API_C++FLAGS += -nostdinc++ ;
 }
 
 # Add directory with system headers we need when building something for the 
host

############################################################################

Commit:      da64f2f649f6fc52cee1bb3fbdbbceb6ebe9ed95

Author:      Matt Madia <mattmadia@xxxxxxxxx>
Date:        Sat Aug  4 07:27:13 2012 UTC

Implemented target_cdefs.h

----------------------------------------------------------------------------

diff --git a/headers/build/posix_target/sys/target_cdefs.h 
b/headers/build/posix_target/sys/target_cdefs.h
new file mode 100644
index 0000000..def137c
--- /dev/null
+++ b/headers/build/posix_target/sys/target_cdefs.h
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2012, Haiku, Inc. All Rights Reserved.
+ * Distributed under the terms of the MIT License.
+ */
+#ifndef _SYS_CDEFS_H
+#define _SYS_CDEFS_H
+
+
+#ifndef __HAIKU_BUILD__THROW
+#      define __HAIKU_BUILD__THROW
+#endif
+
+#ifndef __HAIKU_BUILD__P
+#      define  __HAIKU_BUILD__P(s) s
+#endif
+
+#ifndef __HAIKU_BUILD__CONCAT
+#      define  __HAIKU_BUILD__CONCAT(x,y)      x ## y
+#endif
+
+#ifndef __HAIKU_BUILD__STRING
+#      define  __HAIKU_BUILD__STRING(x)                #x
+#endif
+
+#if defined(__cplusplus)
+#      define  __HAIKU_BUILD__BEGIN_DECLS      extern "C" {
+#      define  __HAIKU_BUILD__END_DECLS        };
+#else
+#      define  __HAIKU_BUILD__BEGIN_DECLS
+#      define  __HAIKU_BUILD__END_DECLS
+#endif
+
+#define __HAIKU_BUILD__dead
+#define __HAIKU_BUILD__dead2
+
+#ifndef _HAIKU_BUILD_LIBROOT_FUNCTION_WRAPPER
+#      ifndef __HAIKU_BUILD__THROW
+#              define __THROW
+#      endif
+
+#      ifndef __HAIKU_BUILD__P
+#              define  __P(s)                  __HAIKU_BUILD__P(s)
+#      endif
+
+#      ifndef __HAIKU_BUILD__CONCAT
+#              define  __CONCAT(x,y)   __HAIKU_BUILD__CONCAT(x,y)
+#      endif
+
+#      ifndef __HAIKU_BUILD__STRING
+#              define  __STRING(x)             __HAIKU_BUILD__STRING(x)
+#      endif
+
+#      if defined(__cplusplus)
+#              define  __BEGIN_DECLS   extern "C" {
+#              define  __END_DECLS     };
+#      else
+#              define  __BEGIN_DECLS
+#              define  __END_DECLS
+#      endif
+
+#      define __dead
+#      define __dead2
+
+#endif /* _HAIKU_BUILD_LIBROOT_FUNCTION_WRAPPER */
+
+
+#endif


Other related posts: