Skip to content

Commit

Permalink
travisci xcode8 (#190)
Browse files Browse the repository at this point in the history
* Update Mac OS X and xcode build targets

updating xcode and OS X versions to latest and removing xcode 6.4 and OS X 10.10. The minimum versions supported is one release behind the latest OS/xcode version.

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

* Fix build error on Mac OS X 10.12

Signed-off-by: The Mathworks Inc <Roy.Lurie@mathworks.com>

* Update Mac OS X and xcode build targets

updating xcode and OS X versions to latest and removing xcode 6.4 and OS X 10.10. The minimum versions supported is one release behind the latest OS/xcode version.

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

* Fix build error on Mac OS X 10.12

Signed-off-by: The Mathworks Inc <Roy.Lurie@mathworks.com>

* Update civetweb.c patch file

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

* Update README

Updated with new Mac OS build targets

[ci skip]

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

* Correct spelling of Xcode

[ci skip]
  
Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com

* Restore Xcode 6.4 as the minimum supported compiler

Signed-off-by: The MathWorks, Inc. Roy.Lurie@mathworks.com
  • Loading branch information
jeffdiclemente committed Mar 16, 2017
1 parent a041ca0 commit c4686d1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ matrix:
addons: *valgrind
compiler: gcc
env: BUILD_CONFIGURATION=1
# latest compiler on OS X
# minimum supported compiler on OS X
- os: osx
osx_image: xcode6.4
compiler: clang
env: BUILD_CONFIGURATION=0 MACOSX_DEPLOYMENT_TARGET=10.10
- os: osx
osx_image: xcode7.3
compiler: clang
Expand All @@ -28,15 +32,15 @@ matrix:
osx_image: xcode7.3
compiler: clang
env: BUILD_CONFIGURATION=1 MACOSX_DEPLOYMENT_TARGET=10.11
# minimum supported compiler on OS X
# latest compiler on OS X
- os: osx
osx_image: xcode6.4
osx_image: xcode8.2
compiler: clang
env: BUILD_CONFIGURATION=0 MACOSX_DEPLOYMENT_TARGET=10.10
env: BUILD_CONFIGURATION=0 MACOSX_DEPLOYMENT_TARGET=10.12
- os: osx
osx_image: xcode6.4
osx_image: xcode8.2
compiler: clang
env: BUILD_CONFIGURATION=1 MACOSX_DEPLOYMENT_TARGET=10.10
env: BUILD_CONFIGURATION=1 MACOSX_DEPLOYMENT_TARGET=10.12

cache:
directories:
Expand Down
13 changes: 8 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
+-------------+-------------------------+--------------------------+
| Branch | GCC 4.6 | Visual Studio 2013 |
| +-------------------------+--------------------------+
| | XCode 6.4 | Visual Studio 2015 |
| | Xcode 6.4 | Visual Studio 2015 |
| +-------------------------+--------------------------+
| | XCode 7.3 | MinGW-w64 |
| | Xcode 7.3 | MinGW-w64 |
| +-------------------------+--------------------------+
| | Xcode 8.2 | |
+=============+=========================+==========================+
| master | |Linux Build Status| | |Windows Build status| |
+-------------+-------------------------+--------------------------+
Expand Down Expand Up @@ -56,16 +58,17 @@ Minimum required compiler versions:

- GCC 4.6
- Clang 3.1
- Clang from XCode 6.4
- Clang from Xcode 6.4
- Visual Studio 2013

Below is a list of tested compiler/OS combinations:

- GCC 4.6.3 (Ubuntu 12.04) via Travis CI
- GCC 6.2.1 (Fedora 25)
- Clang 3.8.0 (Fedora 25)
- Clang XCode 6.4 (OS X 10.10) via Travis CI
- Clang XCode 7.3 (OS X 10.11) via Travis CI
- Clang Xcode 6.4 (OS X 10.10) via Travis CI
- Clang Xcode 7.3 (OS X 10.11) via Travis CI
- Clang Xcode 8.2 (OS X 10.12) via Travis CI
- Visual Studio 2013 via Appveyor
- Visual Studio 2015 via Appveyor
- Visual Studio 2017 RC (Windows 7)
Expand Down
4 changes: 2 additions & 2 deletions third_party/civetweb/civetweb.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
#define CLOCK_REALTIME (2)
#endif

#if (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
#if defined(_DARWIN_FEATURE_CLOCK_GETTIME) && (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
/* clock_gettime is not implemented on OSX */
int clock_gettime(int clk_id, struct timespec *t);

Expand Down Expand Up @@ -193,7 +193,7 @@ clock_gettime(int clk_id, struct timespec *t)
}
return -1; /* EINVAL - Clock ID is unknown */
}
#endif // _DARWIN_FEATURE_CLOCK_GETTIME == 0
#endif // defined(_DARWIN_FEATURE_CLOCK_GETTIME) && (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
#endif


Expand Down
6 changes: 3 additions & 3 deletions third_party/patches/civetweb_v1.8.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/third_party/civetweb/civetweb.c b/third_party/civetweb/civetweb.c
index 98130f5..83daace 100644
index 98130f5..cc25d9d 100644
--- a/third_party/civetweb/civetweb.c
+++ b/third_party/civetweb/civetweb.c
@@ -129,8 +129,11 @@ mg_static_assert(sizeof(void *) >= sizeof(int), "data type size check");
Expand Down Expand Up @@ -27,15 +27,15 @@ index 98130f5..83daace 100644
+#define CLOCK_REALTIME (2)
+#endif

+#if (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
+#if defined(_DARWIN_FEATURE_CLOCK_GETTIME) && (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
/* clock_gettime is not implemented on OSX */
int clock_gettime(int clk_id, struct timespec *t);

@@ -183,6 +193,7 @@ clock_gettime(int clk_id, struct timespec *t)
}
return -1; /* EINVAL - Clock ID is unknown */
}
+#endif // _DARWIN_FEATURE_CLOCK_GETTIME == 0
+#endif // defined(_DARWIN_FEATURE_CLOCK_GETTIME) && (_DARWIN_FEATURE_CLOCK_GETTIME == 0)
#endif


0 comments on commit c4686d1

Please sign in to comment.