summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/121-isl.sh
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-10 18:46:57 (GMT)
committerGitHub <noreply@github.com>2017-01-10 18:46:57 (GMT)
commit50aa6b583b89b2f4c031e581dda15051d1c2f721 (patch)
treefaf6c28589d312ef9be24fb448433cfcc5c05aa7 /scripts/build/companion_libs/121-isl.sh
parentabdaa36b5ab0a46055248bc437d0f74183984d78 (diff)
parentc69e593a9272ad186b6669bc5b12886890cea7fe (diff)
Merge pull request #510 from stilor/pass-flags-for-build
Pass flags for build & MacOS fixes.
Diffstat (limited to 'scripts/build/companion_libs/121-isl.sh')
-rw-r--r--scripts/build/companion_libs/121-isl.sh18
1 files changed, 4 insertions, 14 deletions
diff --git a/scripts/build/companion_libs/121-isl.sh b/scripts/build/companion_libs/121-isl.sh
index 823dbd5..8cc6dc2 100644
--- a/scripts/build/companion_libs/121-isl.sh
+++ b/scripts/build/companion_libs/121-isl.sh
@@ -29,8 +29,6 @@ do_isl_extract() {
# - install in build-tools prefix
do_isl_for_build() {
local -a isl_opts
- local isl_cflags
- local isl_cxxflags
case "${CT_TOOLCHAIN_TYPE}" in
native|cross) return 0;;
@@ -39,13 +37,10 @@ do_isl_for_build() {
CT_DoStep INFO "Installing ISL for build"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-isl-build-${CT_BUILD}"
- isl_cflags="${CT_CFLAGS_FOR_BUILD}"
- isl_cxxflags="${CT_CFLAGS_FOR_BUILD}"
-
isl_opts+=( "host=${CT_BUILD}" )
isl_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" )
- isl_opts+=( "cflags=${isl_cflags}" )
- isl_opts+=( "cxxflags=${isl_cxxflags}" )
+ isl_opts+=( "cflags=${CT_CFLAGS_FOR_BUILD}" )
+ isl_opts+=( "cxxflags=${CT_CFLAGS_FOR_BUILD}" )
isl_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" )
do_isl_backend "${isl_opts[@]}"
@@ -56,19 +51,14 @@ do_isl_for_build() {
# Build ISL for running on host
do_isl_for_host() {
local -a isl_opts
- local isl_cflags
- local isl_cxxflags
CT_DoStep INFO "Installing ISL for host"
CT_mkdir_pushd "${CT_BUILD_DIR}/build-isl-host-${CT_HOST}"
- isl_cflags="${CT_CFLAGS_FOR_HOST}"
- isl_cxxflags="${CT_CFLAGS_FOR_HOST}"
-
isl_opts+=( "host=${CT_HOST}" )
isl_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" )
- isl_opts+=( "cflags=${isl_cflags}" )
- isl_opts+=( "cxxflags=${isl_cxxflags}" )
+ isl_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" )
+ isl_opts+=( "cxxflags=${CT_CFLAGS_FOR_HOST}" )
isl_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" )
do_isl_backend "${isl_opts[@]}"