From a745f0573e0c53ba1b2ba1d79e3dee5385a740e3 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 4 Jul 2025 10:05:25 -0500 Subject: [PATCH] adjustments for darwin/clang build --- example/ex1/ex1.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/example/ex1/ex1.cpp b/example/ex1/ex1.cpp index 5dd91fe2..0c69cab4 100644 --- a/example/ex1/ex1.cpp +++ b/example/ex1/ex1.cpp @@ -5,6 +5,14 @@ #include "xo/expression/llvmintrinsic.hpp" #include #include +#include + +// address of &sqrt ambiguous on osx/clang +// (perhaps it's a template..?) +// +double xo_sqrt(double x) { + return sqrt(x); +} int main() { @@ -20,7 +28,7 @@ main() { { auto expr = make_primitive("sqrt", - &::sqrt, + &xo_sqrt, false /*!explicit_symbol_def*/, llvmintrinsic::fp_sqrt);