From 6627b9188c46a8a1f88524930aba4849f042749d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Drvo=C5=A1t=C4=9Bp?= Date: Mon, 11 Dec 2023 18:25:46 +0100 Subject: [PATCH] Make `jl_write_coverage_data` dllexported again (#52456) Closes #52452 (cherry picked from commit 8cf7598ebd0c120f50db2f5d6bbd091855a4836c) --- src/coverage.cpp | 2 +- src/julia_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coverage.cpp b/src/coverage.cpp index 95924f326524b..ab3bc193eb2a0 100644 --- a/src/coverage.cpp +++ b/src/coverage.cpp @@ -192,7 +192,7 @@ static void write_lcov_data(logdata_t &logData, const std::string &outfile) outf.close(); } -extern "C" void jl_write_coverage_data(const char *output) +extern "C" JL_DLLEXPORT void jl_write_coverage_data(const char *output) { if (output) { StringRef output_pattern(output); diff --git a/src/julia_internal.h b/src/julia_internal.h index 4a845350424d4..f96f4db9d611e 100644 --- a/src/julia_internal.h +++ b/src/julia_internal.h @@ -1603,7 +1603,7 @@ JL_DLLEXPORT enum jl_memory_order jl_get_atomic_order_checked(jl_sym_t *order, c struct _jl_image_fptrs_t; -void jl_write_coverage_data(const char*); +JL_DLLEXPORT void jl_write_coverage_data(const char*); void jl_write_malloc_log(void); #if jl_has_builtin(__builtin_unreachable) || defined(_COMPILER_GCC_) || defined(_COMPILER_INTEL_)