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

package:
  name: gxx_impl_linux-64
  version: 14.2.0
source:
  - patches:
      - patches/0002-allow-commands-in-main-specfile.patch
      - patches/0003-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch
      - patches/0004-add-ldl-to-libstdc___la_LDFLAGS.patch
      - patches/0005-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
      - patches/0006-fix-tzdb-for-newer-format.patch
    sha256: 7d376d445f93126dc545e2c0086d0f647c3094aae081cdb78f42ce2bc25e7293
    url: https://ftp.gnu.org/gnu/gcc/gcc-14.2.0/gcc-14.2.0.tar.gz
build:
  detect_binary_files_with_prefix: false
  ignore_run_exports_from:
    - sysroot_linux-64
  missing_dso_whitelist:
    - '*'
  number: 1
  string: h2c03514_1
requirements:
  host:
    - gcc_impl_linux-64 14.2.0 h6b349bd_1
    - kernel-headers_linux-64 2.6.32 he073ed8_16
    - sysroot_linux-64 2.12 he073ed8_16
  run:
    - gcc_impl_linux-64 14.2.0 h6b349bd_1
    - libstdcxx-devel_linux-64 14.2.0 h41c2201_101
    - sysroot_linux-64
    - tzdata
test:
  commands:
    - test -f ${PREFIX}/bin/x86_64-conda_cos6-linux-gnu-g++
    - 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
  files:
    - tests
  requires:
    - sysroot_linux-64 2.12.*
about:
  home: https://gcc.gnu.org/
  license: GPL-3.0-only WITH GCC-exception-3.1
  summary: GNU C++ Compiler
extra:
  copy_test_source_files: true
  feedstock-name: ctng-compilers-feedstock
  final: true
  flow_run_id: azure_20241015.1.1
  recipe-maintainers:
    - beckermr
    - isuruf
    - timsnyder
    - xhochy
  remote_url: https://github.com/conda-forge/ctng-compilers-feedstock
  sha: 55c5af125402e8a59e38fdeb72d47dafdc7e67f5
