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

Commit

Permalink
Add gcc-4-8-pic toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Mar 15, 2016
1 parent 162cd15 commit d995d47
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ env:
- EXAMPLE=01-executable TOOLCHAIN=gcc CONFIG=Release
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Release
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Debug
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Release
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- EXAMPLE=01-executable TOOLCHAIN=ios-nocodesign CONFIG=Debug
- EXAMPLE=01-executable TOOLCHAIN=ios-nocodesign CONFIG=Release
- EXAMPLE=01-executable TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
Expand Down Expand Up @@ -77,6 +79,8 @@ env:
- EXAMPLE=02-library TOOLCHAIN=gcc CONFIG=Release
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Release
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Debug
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Release
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- EXAMPLE=02-library TOOLCHAIN=ios-nocodesign CONFIG=Debug
- EXAMPLE=02-library TOOLCHAIN=ios-nocodesign CONFIG=Release
- EXAMPLE=02-library TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
Expand Down Expand Up @@ -105,6 +109,8 @@ env:
- EXAMPLE=03-shared-link TOOLCHAIN=gcc CONFIG=Release
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Release
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Debug
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Release
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- EXAMPLE=03-shared-link TOOLCHAIN=ios-nocodesign CONFIG=Debug
- EXAMPLE=03-shared-link TOOLCHAIN=ios-nocodesign CONFIG=Release
- EXAMPLE=03-shared-link TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
Expand Down Expand Up @@ -193,14 +199,26 @@ matrix:
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Debug
- os: osx
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Release
- os: osx
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- os: osx
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Release
- os: osx
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Debug
- os: osx
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Release
- os: osx
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- os: osx
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Release
- os: osx
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Debug
- os: osx
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Release
- os: osx
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
- os: osx
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Release

# https://github.com/travis-ci-tester/travis-test-mac-clang-address-sanitizer
- os: osx
Expand Down
1 change: 1 addition & 0 deletions bin/detail/toolchain_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def verify(self):
Toolchain('gcc-gold', 'Unix Makefiles'),
Toolchain('gcc-pic', 'Unix Makefiles'),
Toolchain('gcc-4-8', 'Unix Makefiles'),
Toolchain('gcc-4-8-pic', 'Unix Makefiles'),
Toolchain('gcc-cxx98', 'Unix Makefiles'),
Toolchain('libcxx', 'Unix Makefiles'),
Toolchain('libcxx-hid', 'Unix Makefiles'),
Expand Down
21 changes: 21 additions & 0 deletions gcc-4-8-pic.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2016, Ruslan Baratov
# All rights reserved.

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

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

polly_init(
"gcc 4.8 / PIC / c++11 support"
"Unix Makefiles"
)

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

include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake")

0 comments on commit d995d47

Please sign in to comment.