Clarify LLVM error messages (#93)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 38fcaa2..95e0eff 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+# 0.2.4+1
+- Minor changes to dylib creation error log.
+
# 0.2.4
- Added support for C booleans as Uint8.
- Added config `dart-bool` (default: true) to use dart bool instead of int in function parameters and return type.
diff --git a/bin/ffigen.dart b/bin/ffigen.dart
index d096914..a49040d 100644
--- a/bin/ffigen.dart
+++ b/bin/ffigen.dart
@@ -35,7 +35,7 @@
/// `pub run ffigen:setup -Ipath/to/llvm/include -Lpath/to/llvm/lib`.
if (!checkDylibExist() && !autoCreateDylib()) {
_logger.severe('Unable to create dynamic library automatically.');
- _logger.severe('If LLVM is installed, try running:');
+ _logger.severe('If LLVM (9+) is installed, try running:');
_logger.severe(
' pub run ffigen:setup -Ipath/to/llvm/include -Lpath/to/llvm/lib');
exit(1);
diff --git a/bin/setup.dart b/bin/setup.dart
index ef618fc..4c7517d 100644
--- a/bin/setup.dart
+++ b/bin/setup.dart
@@ -100,7 +100,7 @@
final options = _getPlatformOptions();
final processResult = _runClangProcess(options);
if ((processResult.stderr as String).isNotEmpty) {
- print(stderr);
+ print(processResult.stderr);
}
return checkDylibExist();
}
diff --git a/pubspec.yaml b/pubspec.yaml
index 0d52538..ae53603 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -3,7 +3,7 @@
# BSD-style license that can be found in the LICENSE file.
name: ffigen
-version: 0.2.4
+version: 0.2.4+1
homepage: https://github.com/dart-lang/ffigen
description: Experimental generator for FFI bindings, using LibClang to parse C header files.