qulogic/gplugin
Clone
Summary
Browse
Changes
Graph
Set the output type
feature/tcc-loader
2016-08-23, Gary Kramlich
0ef8d0960dec
Parents
8a10e665eab7
Children
2c272c593903
Set the output type
1 files changed, 2 insertions(+), 0 deletions(-)
+2
-0
tcc/gplugin-tcc-loader.c
--- a/tcc/gplugin-tcc-loader.c Mon Aug 22 15:16:19 2016 -0500
+++ b/tcc/gplugin-tcc-loader.c Tue Aug 23 12:00:16 2016 -0500
@@ -55,6 +55,8 @@
s = tcc_new();
+ tcc_set_output_type(s, TCC_OUTPUT_MEMORY);
+
if(tcc_add_file(s, filename) == -1) {
if(error)
*error = g_error_new(GPLUGIN_DOMAIN, 0, "couldn't load file %s", filename);