blob: ba2ae07083d5a053c3cff34c53464dbf11d60c16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
|