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

package:
  name: gxx_impl_linux-64
  version: 15.2.0
source:
  - url:
      - https://ftp.gnu.org/gnu/gcc/gcc-15.2.0/gcc-15.2.0.tar.gz
      - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-15.2.0/gcc-15.2.0.tar.gz
    sha256: 7294d65cc1a0558cb815af0ca8c7763d86f7a31199794ede3f630c0d1b0a5723
    patches:
      - patches/0001-allow-commands-in-main-specfile.patch
      - patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch
      - patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch
      - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
build:
  number: 7
  detect_binary_files_with_prefix: false
  missing_dso_whitelist:
    - '*'
  ignore_run_exports_from:
    - sysroot_linux-64
  string: h54ccb8d_7
requirements:
  host:
    - binutils_impl_linux-64 2.44 hdf8817f_2
    - gcc_impl_linux-64 15.2.0 hcacfade_7
    - kernel-headers_linux-64 3.10.0 he581ecd_18
    - ld_impl_linux-64 2.44 ha97dd6f_2
    - sysroot_linux-64 2.17 hb09d241_18
    - tzdata 2025b h78e105d_0
  run:
    - gcc_impl_linux-64 15.2.0 hcacfade_7
    - libstdcxx-devel_linux-64 15.2.0 h73f6952_107
    - 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
    - ${CXX} -Wall hello_world.o -o hello_world --std=c++17
    - ${CXX} -isystem ${PREFIX}/include --std=c++20 -Wall tests/tzdb-override.cpp
      -c -o tzdb-override.o
    - ${CXX} -isystem ${PREFIX}/include --std=c++20 -Wall tests/tzdb.cpp -c -o tzdb.o
    - ${CXX} tzdb-override.o -o tzdb-override && ./tzdb-override
    - ${CXX} tzdb.o -o tzdb && ./tzdb
    - strace ./tzdb 2>&1 | grep ${CONDA_PREFIX}/lib/../share/zoneinfo/tzdata.zi
    - unset PREFIX
    - unset CONDA_PREFIX
    - ./tzdb
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_20251008.2.1
  remote_url: https://github.com/conda-forge/ctng-compilers-feedstock
  sha: 75d69d32b4266eef9808c20157cc4af1ef9705ca
