# This file created by conda-build 26.3.0
# ------------------------------------------------

package:
  name: gxx_impl_linux-64
  version: 13.4.0
source:
  - url:
      - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-13.4.0/gcc-13.4.0.tar.gz
    sha256: bf0baf3e570c9c74c17c8201f0196c6924b4bd98c90e69d6b2ac0cd823f33bbc
    patches:
      - patches/0001-allow-commands-in-main-specfile.patch
      - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
  - url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
    sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
    folder: zlib2
build:
  number: 19
  detect_binary_files_with_prefix: false
  missing_dso_whitelist:
    - '*'
  ignore_run_exports_from:
    - sysroot_linux-64
  string: h6a38259_19
requirements:
  host:
    - binutils_impl_linux-64 2.45.1 bootstrap_h59bd682_2
    - gcc_impl_linux-64 13.4.0 h23e9d51_19
    - kernel-headers_linux-64 3.10.0 he581ecd_18
    - ld_impl_linux-64 2.45.1 bootstrap_ha15bf96_2
    - libstdcxx-devel_linux-64 13.4.0 h6963c3b_119
    - sysroot_linux-64 2.17 hb09d241_18
    - tzdata 2025c hc9c84f9_1
  run:
    - gcc_impl_linux-64 13.4.0 h23e9d51_19
    - libstdcxx-devel_linux-64 13.4.0 h6963c3b_119
    - sysroot_linux-64
    - tzdata
test:
  requires:
    - sysroot_linux-64 2.17.*
  files:
    - tests
  commands:
    - test -f ${PREFIX}/bin/x86_64-conda-linux-gnu-g++
    - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++
    - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17
    - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned
    - ${CXX} -Wall tests/hello_world.cpp -c -o hello_world.o --std=c++17 -v
    - ${CXX} -Wall hello_world.o -o hello_world --std=c++17 -v
about:
  summary: GNU C++ Compiler
  home: https://gcc.gnu.org/
  license: GPL-3.0-only WITH GCC-exception-3.1
extra:
  feedstock-name: ctng-compilers-feedstock
  recipe-maintainers:
    - beckermr
    - isuruf
    - timsnyder
    - xhochy
  final: true
  copy_test_source_files: true
  flow_run_id: azure_20260508.3.1
  remote_url: https://github.com/conda-forge/ctng-compilers-feedstock
  sha: 56d1f0049683ead04fe3ed3276d698dbaacac230
