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

Commit d995d47

Browse files
committed
Add gcc-4-8-pic toolchain
1 parent 162cd15 commit d995d47

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ env:
4949
- EXAMPLE=01-executable TOOLCHAIN=gcc CONFIG=Release
5050
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Release
5151
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Debug
52+
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Release
53+
- EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
5254
- EXAMPLE=01-executable TOOLCHAIN=ios-nocodesign CONFIG=Debug
5355
- EXAMPLE=01-executable TOOLCHAIN=ios-nocodesign CONFIG=Release
5456
- EXAMPLE=01-executable TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
@@ -77,6 +79,8 @@ env:
7779
- EXAMPLE=02-library TOOLCHAIN=gcc CONFIG=Release
7880
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Release
7981
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Debug
82+
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Release
83+
- EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
8084
- EXAMPLE=02-library TOOLCHAIN=ios-nocodesign CONFIG=Debug
8185
- EXAMPLE=02-library TOOLCHAIN=ios-nocodesign CONFIG=Release
8286
- EXAMPLE=02-library TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
@@ -105,6 +109,8 @@ env:
105109
- EXAMPLE=03-shared-link TOOLCHAIN=gcc CONFIG=Release
106110
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Release
107111
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Debug
112+
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Release
113+
- EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
108114
- EXAMPLE=03-shared-link TOOLCHAIN=ios-nocodesign CONFIG=Debug
109115
- EXAMPLE=03-shared-link TOOLCHAIN=ios-nocodesign CONFIG=Release
110116
- EXAMPLE=03-shared-link TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon CONFIG=Release
@@ -193,14 +199,26 @@ matrix:
193199
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Debug
194200
- os: osx
195201
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8 CONFIG=Release
202+
- os: osx
203+
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
204+
- os: osx
205+
env: EXAMPLE=01-executable TOOLCHAIN=gcc-4-8-pic CONFIG=Release
196206
- os: osx
197207
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Debug
198208
- os: osx
199209
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8 CONFIG=Release
210+
- os: osx
211+
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
212+
- os: osx
213+
env: EXAMPLE=02-library TOOLCHAIN=gcc-4-8-pic CONFIG=Release
200214
- os: osx
201215
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Debug
202216
- os: osx
203217
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8 CONFIG=Release
218+
- os: osx
219+
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Debug
220+
- os: osx
221+
env: EXAMPLE=03-shared-link TOOLCHAIN=gcc-4-8-pic CONFIG=Release
204222

205223
# https://github.com/travis-ci-tester/travis-test-mac-clang-address-sanitizer
206224
- os: osx

bin/detail/toolchain_table.py

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def verify(self):
200200
Toolchain('gcc-gold', 'Unix Makefiles'),
201201
Toolchain('gcc-pic', 'Unix Makefiles'),
202202
Toolchain('gcc-4-8', 'Unix Makefiles'),
203+
Toolchain('gcc-4-8-pic', 'Unix Makefiles'),
203204
Toolchain('gcc-cxx98', 'Unix Makefiles'),
204205
Toolchain('libcxx', 'Unix Makefiles'),
205206
Toolchain('libcxx-hid', 'Unix Makefiles'),

gcc-4-8-pic.cmake

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2016, Ruslan Baratov
2+
# All rights reserved.
3+
4+
if(DEFINED POLLY_GCC48_PIC_CMAKE_)
5+
return()
6+
else()
7+
set(POLLY_GCC48_PIC_CMAKE_ 1)
8+
endif()
9+
10+
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")
11+
12+
polly_init(
13+
"gcc 4.8 / PIC / c++11 support"
14+
"Unix Makefiles"
15+
)
16+
17+
include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")
18+
19+
include("${CMAKE_CURRENT_LIST_DIR}/compiler/gcc48.cmake")
20+
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx11.cmake")
21+
include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake")

0 commit comments

Comments
 (0)