Skip to content

Commit

Permalink
Enable ppc64le (#9)
Browse files Browse the repository at this point in the history
* Enable ppc64le

This should be possible now that support for ppc64le has been
re-enabled for libgdal
conda-forge/gdal-feedstock#968

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and conda-forge-pinning 2024.07.31.04.56.44

* strip architectures from flags for native builds

* don't depend on leading whitespace in sed-replacement

---------

Co-authored-by: conda-forge-webservices[bot] <91080706+conda-forge-webservices[bot]@users.noreply.github.com>
Co-authored-by: h-vetinari <[email protected]>
  • Loading branch information
3 people authored Aug 2, 2024
1 parent e940dd8 commit aa5ec89
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 29 deletions.
4 changes: 4 additions & 0 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 60 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
c_compiler:
- gcc
c_compiler_version:
- '12'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
geotiff:
- 1.7.3
gflags:
- '2.2'
glog:
- '0.7'
hdf5:
- 1.14.3
libarrow:
- '14'
- '15'
- '16.1'
- '17.0'
libcurl:
- '8'
libgdal_core:
- '3.9'
libpq:
- '16'
libxml2:
- '2'
openssl:
- '3'
proj:
- '9.4'
target_platform:
- linux-ppc64le
tiledb:
- '2.25'
xerces_c:
- '3.2'
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
zlib:
- '1'
zstd:
- '1.5'
26 changes: 0 additions & 26 deletions .ci_support/migrations/libarrow170.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ export CXXFLAGS
if [ "$CONDA_BUILD_CROSS_COMPILATION" == "1" ]; then
mkdir native; pushd native;

CFLAGS_NATIVE=${CFLAGS//$PREFIX/$BUILD_PREFIX}
CXXFLAGS_NATIVE=${CXXFLAGS//$PREFIX/$BUILD_PREFIX}
LDFLAGS_NATIVE=${LDFLAGS//$PREFIX/$BUILD_PREFIX}
CFLAGS_NATIVE=${CFLAGS//$PREFIX/$BUILD_PREFIX}
# also need to strip wrong architectures specifications for native builds
CFLAGS_NATIVE="$(echo ${CFLAGS_NATIVE} | sed 's/-march=[^ ]*//g' | sed 's/-mcpu=[^ ]*//g' | sed 's/-mtune=[^ ]*//g')"
CXXFLAGS_NATIVE="$(echo ${CXXFLAGS_NATIVE} | sed 's/-march=[^ ]*//g' | sed 's/-mcpu=[^ ]*//g' | sed 's/-mtune=[^ ]*//g')"

CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD \
LDFLAGS=${LDFLAGS_NATIVE} \
Expand Down
3 changes: 1 addition & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ source:
sha256: f6ae0f3dc012b19c70dde2361799ecac0cdcbeb9cad5cfd96313c9fdc8608f32

build:
number: 4
skip: true # [ppc64le]
number: 5
run_exports:
- {{ pin_subpackage('libpdal-core', max_pin='x.x') }}

Expand Down

0 comments on commit aa5ec89

Please sign in to comment.