Skip to content

Commit

Permalink
Changes for gcc-toolset-12 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman-Surkar authored Feb 28, 2024
1 parent 4f67bd8 commit 1054f92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ export CONDA_PREFIX="$PREFIX" # build script looks at this, but not set on

if [[ $ppc_arch == "p10" ]]
then
if [[ -z "${GCC_11_HOME}" ]];
if [[ -z "${GCC_HOME}" ]];
then
echo "Please set GCC_11_HOME to the install path of gcc-toolset-11"
echo "Please set GCC_HOME to the install path of gcc-toolset-12"
exit 1
else
AR=${GCC_11_HOME}/bin/ar
LD=${GCC_11_HOME}/bin/ld
NM=${GCC_11_HOME}/bin/nm
OBJCOPY=${GCC_11_HOME}/bin/objcopy
OBJDUMP=${GCC_11_HOME}/bin/objdump
RANLIB=${GCC_11_HOME}/bin/ranlib
STRIP=${GCC_11_HOME}/bin/strip
AR=${GCC_HOME}/bin/ar
LD=${GCC_HOME}/bin/ld
NM=${GCC_HOME}/bin/nm
OBJCOPY=${GCC_HOME}/bin/objcopy
OBJDUMP=${GCC_HOME}/bin/objdump
RANLIB=${GCC_HOME}/bin/ranlib
STRIP=${GCC_HOME}/bin/strip
fi
fi

Expand Down
4 changes: 2 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ source:
git_rev: v{{ version }}

build:
number: 1
number: 2
string: h{{ PKG_HASH }}_py{{ python | replace(".", "") }}_pb{{ protobuf | replace(".*", "")}}_{{ PKG_BUILDNUM }}
entry_points:
- check-model = onnx.bin.checker:check_model
- check-node = onnx.bin.checker:check_node
- backend-test-tools = onnx.backend.test.cmd_tools:main
script_env: # [ppc_arch == "p10"]
- GCC_11_HOME # [ppc_arch == "p10"]
- GCC_HOME # [ppc_arch == "p10"]

requirements:
build:
Expand Down

0 comments on commit 1054f92

Please sign in to comment.