summaryrefslogtreecommitdiff
path: root/codegen/valaccodecompiler.vala
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2012-03-31 22:56:00 +0200
committerLuca Bruno <lucabru@src.gnome.org>2012-04-11 17:16:48 +0200
commit3afbe1318cfaa7cb333b420503ec3655adde9edb (patch)
tree67789564b46c917f65b4313f38c407e70beb91d5 /codegen/valaccodecompiler.vala
parentb47eefb193151825285ffdf0d923ab17bb462fc9 (diff)
downloadvala-wip/cpp.tar.gz
codegen: Add basic support for using C++ librarieswip/cpp
Diffstat (limited to 'codegen/valaccodecompiler.vala')
-rw-r--r--codegen/valaccodecompiler.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/codegen/valaccodecompiler.vala b/codegen/valaccodecompiler.vala
index 09ab3d619..4bcdfecbc 100644
--- a/codegen/valaccodecompiler.vala
+++ b/codegen/valaccodecompiler.vala
@@ -43,7 +43,7 @@ public class Vala.CCodeCompiler {
}
/**
- * Compile generated C code to object code and optionally link object
+ * Compile generated C/C++ code to object code and optionally link object
* files.
*
* @param context a code context
@@ -106,7 +106,7 @@ public class Vala.CCodeCompiler {
var source_files = context.get_source_files ();
foreach (SourceFile file in source_files) {
if (file.file_type == SourceFileType.SOURCE) {
- cmdline += " " + Shell.quote (file.get_csource_filename ());
+ cmdline += " " + Shell.quote (file.get_output_filename ());
}
}
var c_source_files = context.get_c_source_files ();
@@ -135,11 +135,11 @@ public class Vala.CCodeCompiler {
Report.error (null, e.message);
}
- /* remove generated C source and header files */
+ /* remove generated C/C++ source and header files */
foreach (SourceFile file in source_files) {
if (file.file_type == SourceFileType.SOURCE) {
if (!context.save_csources) {
- FileUtils.unlink (file.get_csource_filename ());
+ FileUtils.unlink (file.get_output_filename ());
}
}
}