Skip to content

Commit

Permalink
Update Build.wl
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryI authored Feb 19, 2025
1 parent 72a7ded commit b7b1aa7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Scripts/Build.wl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ Get["LibraryLink`"];
Echo[$CCompiler];
Echo[CCompilers[]];

If[Length[CCompilers[]] === 0,
$CCompiler={"Compiler"->GenericCCompiler,
"CompilerInstallation"->"/usr/bin",
"CompilerName"->"gcc",
"ShellOutputFunction"->Print}
];

$CCompiler = Last[CCompilers[]];



getLibraryLinkVersion[] :=
Which[
$VersionNumber >= 14.1,
Expand Down Expand Up @@ -52,6 +61,7 @@ Block[{$directory, $libSrc, $libDir, $linkerOptions},
CreateLibrary[$libSrc, lib,
"TargetDirectory" -> $libDir,
"Debug" -> True,
"ShellOutputFunction"->Print,
opts
]
];
Expand Down

0 comments on commit b7b1aa7

Please sign in to comment.