forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Fix boost compilation on latest macOS Catalina
The latest Catalina update broke boost due to bad version parsing/checks. This patch applies the fix from the below pull request as a patch: boostorg/build#560 See boostorg/build#440 for additional context. Change-Id: Ie6bb488dcadf215be708ae1b1e89ddd77bd30074 Reviewed-on: http://gerrit.cloudera.org:8080/15632 Tested-by: Kudu Jenkins Reviewed-by: Adar Dembo <[email protected]> Reviewed-by: Alexey Serbin <[email protected]> Reviewed-by: Andrew Wong <[email protected]>
- Loading branch information
1 parent
fa2d4c7
commit e6fa761
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- tools/build/src/tools/darwin.jam | ||
+++ tools/build/src/tools/darwin.jam | ||
@@ -137,13 +137,14 @@ rule init ( version ? : command * : options * : requirement * ) | ||
# - Set the toolset generic common options. | ||
common.handle-options darwin : $(condition) : $(command) : $(options) ; | ||
|
||
+ real-version = [ regex.split $(real-version) \\. ] ; | ||
# - GCC 4.0 and higher in Darwin does not have -fcoalesce-templates. | ||
- if $(real-version) < "4.0.0" | ||
+ if [ version.version-less $(real-version) : 4 0 ] | ||
{ | ||
flags darwin.compile.c++ OPTIONS $(condition) : -fcoalesce-templates ; | ||
} | ||
# - GCC 4.2 and higher in Darwin does not have -Wno-long-double. | ||
- if $(real-version) < "4.2.0" | ||
+ if [ version.version-less $(real-version) : 4 2 ] | ||
{ | ||
flags darwin.compile OPTIONS $(condition) : -Wno-long-double ; | ||
} |