Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Add 'osx-10-12-sanitize-address' toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Dec 7, 2016
1 parent c5ad5eb commit 801131c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/detail/toolchain_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def verify(self):
Toolchain('osx-10-10-dep-10-9-make', 'Unix Makefiles'),
Toolchain('osx-10-11-make', 'Unix Makefiles'),
Toolchain('osx-10-11-sanitize-address', 'Xcode', osx_version='10.11'),
Toolchain('osx-10-12-sanitize-address', 'Xcode', osx_version='10.12'),
Toolchain('linux-gcc-x64', 'Unix Makefiles'),
]

Expand Down
31 changes: 31 additions & 0 deletions osx-10-12-sanitize-address.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2016, Ruslan Baratov
# Copyright (c) 2016, David Hirvonen
# All rights reserved.

if(DEFINED POLLY_OSX_10_12_SANITIZE_ADDRESS_CMAKE_)
return()
else()
set(POLLY_OSX_10_12_SANITIZE_ADDRESS_CMAKE_ 1)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")

set(OSX_SDK_VERSION "10.12")
set(POLLY_XCODE_COMPILER "clang")
polly_init(
"Xcode (OS X ${OSX_SDK_VERSION}) / \
${POLLY_XCODE_COMPILER} / \
LLVM Standard C++ Library (libc++) / Clang address sanitizer / c++11 support"
"Xcode"
)

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/compiler/xcode.cmake")

set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "OS X Deployment target" FORCE)

include("${CMAKE_CURRENT_LIST_DIR}/library/std/libcxx.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/os/osx.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_address.cmake")

0 comments on commit 801131c

Please sign in to comment.