[vala] valac: Default basedir to current directory
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] valac: Default basedir to current directory
- Date: Tue, 31 Mar 2009 03:31:09 -0400 (EDT)
commit e21799b9aa0eb3e31a67d9e33b0d11d6d054f336
Author: Jürg Billeter <j bitron ch>
Date: Tue Mar 31 09:29:00 2009 +0200
valac: Default basedir to current directory
valac -C src/foo.vala should generate the file src/foo.c.
---
compiler/valacompiler.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 200cc40..fe74b58 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -171,7 +171,9 @@ class Vala.Compiler {
context.compile_only = compile_only;
context.header_filename = header_filename;
context.output = output;
- if (basedir != null) {
+ if (basedir == null) {
+ context.basedir = realpath (".");
+ } else {
context.basedir = realpath (basedir);
}
if (directory != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]