forked from Nexus/nexus
use libclang.dylib on macos
This commit is contained in:
parent
06075f75c5
commit
9298eb815d
1 changed files with 12 additions and 1 deletions
|
|
@ -24,7 +24,18 @@ void main(List<String> args) async {
|
||||||
).generate(
|
).generate(
|
||||||
libclangDylib: libclangPath == null
|
libclangDylib: libclangPath == null
|
||||||
? null
|
? null
|
||||||
: Uri.file(join(libclangPath, "libclang.so")),
|
: Uri.file(
|
||||||
|
join(
|
||||||
|
libclangPath,
|
||||||
|
"libclang.${(Platform.isLinux || Platform.isAndroid)
|
||||||
|
? "so"
|
||||||
|
: Platform.isMacOS
|
||||||
|
? "dylib"
|
||||||
|
: Platform.isWindows
|
||||||
|
? "dll"
|
||||||
|
: throw UnsupportedError("Unsupported Platform")}",
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
print("Done!");
|
print("Done!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue