From 05c62d5fa0c20c10dea3f5317453b79e3ff6658e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Tue, 24 Jun 2025 15:39:41 +0800 Subject: [PATCH] fix for macOS support --- thermion_dart/hook/build.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thermion_dart/hook/build.dart b/thermion_dart/hook/build.dart index bd46696f..72830fe9 100644 --- a/thermion_dart/hook/build.dart +++ b/thermion_dart/hook/build.dart @@ -98,6 +98,8 @@ void main(List args) async { "basis_transcoder", "uberarchive", "zstd", + if(targetOS != OS.linux) + ...["meshoptimizer","mikktspace", "geometry"], if (targetOS == OS.macOS) ...["matdbg", "fgviewer"] ]; @@ -196,6 +198,7 @@ void main(List args) async { ...[ "-stdlib=libc++", "-Wl,--whole-archive" ], if (targetOS != OS.windows)...[ ...libs.map((lib) => "-l$lib"), + if(targetOS == OS.linux) "-Wl,--no-whole-archive", if(targetOS != OS.linux) "-lstdc++",