Unverified Commit a710670a authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

tiledb: fix libcxx builds (#367289)

parents e9830e9b 26f8cf4e
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
@@ -48,7 +48,8 @@ stdenv.mkDerivation rec {
    ./FindMagic_EP.cmake.patch
  ];

  postPatch = ''
  postPatch =
    ''
      # copy pre-fetched external project to directory where it is expected to be
      mkdir -p build/externals/src
      cp -a ${ep-file-windows} build/externals/src/ep_magic
@@ -57,6 +58,13 @@ stdenv.mkDerivation rec {
      # add openssl on path
      sed -i '49i list(APPEND OPENSSL_PATHS "${openssl.dev}" "${openssl.out}")' \
        cmake/Modules/FindOpenSSL_EP.cmake
    ''
    # libcxx (as of llvm-19) does not yet support `stop_token` and `jthread`
    # without the -fexperimental-library flag. Tiledb adds its own
    # implementations in the std namespace which conflict with libcxx. This
    # test can be re-enabled once libcxx supports stop_token and jthread.
    + lib.optionalString (stdenv.cc.libcxx != null) ''
      truncate -s0 tiledb/stdx/test/CMakeLists.txt
    '';

  # upstream will hopefully fix this in some newer release