From f3a0c9a0ce90f5bc83f96664dc16e94a5d0665cc Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 18 Jul 2023 06:55:24 -0700 Subject: math/clad: Add test target --- ...patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp (limited to 'math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp') diff --git a/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp b/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp new file mode 100644 index 000000000000..ba2ae07083d5 --- /dev/null +++ b/math/clad/files/patch-demos_ErrorEstimation_PrintModel_PrintModel.cpp @@ -0,0 +1,16 @@ +- workaround for errors like: +- ld: error: undefined reference due to --no-allow-shlib-undefined: __progname +- >>> referenced by /lib/libc.so.7 + +--- demos/ErrorEstimation/PrintModel/PrintModel.cpp.orig 2023-07-18 14:54:11 UTC ++++ demos/ErrorEstimation/PrintModel/PrintModel.cpp +@@ -4,6 +4,9 @@ + #include "PrintModel.h" + #include "clad/Differentiator/CladUtils.h" + ++char **environ = nullptr; ++const char *__progname = "x"; ++ + // Here we use the BuildOp function provided by clad to build a multiplication + // expression that clad can generate code for. + clang::Expr* PrintModel::AssignError(clad::StmtDiff refExpr, -- cgit v1.2.3