summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-06-16 15:48:54 -0400
committerAdrian Thurston <thurston@complang.org>2014-06-16 15:48:54 -0400
commit8f6c1cef9befbdfaef6e2a6601566187fadda235 (patch)
tree43129724bbd1bd089081d41679a0c362e764b015 /src/main.cc
parent4b937fa4315b75c368d8ac100328e157404a97d0 (diff)
downloadcolm-8f6c1cef9befbdfaef6e2a6601566187fadda235.tar.gz
make -o work for binary compilation, bump to 0.12.1
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index aaf46e6f..c7f929f6 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -248,6 +248,9 @@ char *fileNameFromStem( const char *stemFile, const char *suffix )
void openOutputCompiled()
{
+ /* Start with the fn given by -o option. */
+ binaryFn = outputFn;
+
if ( binaryFn == 0 )
binaryFn = fileNameFromStem( inputFn, 0 );