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

Suppress some build warnings #85

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions azure/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
vmImage: ${{ parameters.vmImage }}
variables:
REPO_DIR: "pandas"
BUILD_COMMIT: "v1.0.3"
BUILD_COMMIT: "master"
PLAT: "x86_64"
NP_BUILD_DEP: "numpy==1.13.3"
CYTHON_BUILD_DEP: "cython==0.29.16"
NIGHTLY_BUILD_COMMIT: "master"
NIGHTLY_BUILD: "false"
NIGHTLY_BUILD: "true"
TEST_DEPENDS: "pytest pytest-xdist hypothesis"
TEST_DIR: "tmp_for_test"
strategy:
Expand Down
20 changes: 20 additions & 0 deletions env_vars.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Environment variables for build
MACOSX_DEPLOYMENT_TARGET=10.9
# CFLAGS override for https://github.com/pandas-dev/pandas/issues/34114
if [ "$(uname)" == "Linux" ]; then
CFLAGS="-ansi -Wno-error=maybe-uninitialized -Wno-error=sign-compare -Wno-error=return-type"
fi
# Macos's linker doesn't support stripping symbols
if [ "$(uname)" != "Darwin" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just an attempt to reduce the binary size? Feature instead of fixing an issue?

LDFLAGS="-Wl,--strip-debug"
# make sure that LDFLAGS is exposed to child processes,
# since current version of manybuild only export CFLAGS, CPPFLAGS and FFLAGS
export LDFLAGS="$LDFLAGS"
# override the default stripping flags, since we only override CFLAGS and
# the current version of manybuild pass "-strip-all" to CPPFLAGS and FFLAGS
STRIP_FLAGS=""
fi
# For verbosity: report where each command came from
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -x