Skip to content

Commit

Permalink
[pbc_to_exe] add mt.exe check on mingw
Browse files Browse the repository at this point in the history
Fixes some parts of #1157.
  • Loading branch information
Reini Urban committed Dec 9, 2014
1 parent 925749b commit 116978a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/dev/pbc_to_exe.winxed
Expand Up @@ -665,6 +665,7 @@ function link_file(string objfile, string exefile, string extra_obj, var opts)
string libdir = $P0['libdir'];
string versiondir = $P0['versiondir'];
string optimize = $P0['optimize'];
int has_mt = $P0['has_mt'];

string pathquote = '"';
string config = pathquote;
Expand Down Expand Up @@ -703,7 +704,7 @@ function link_file(string objfile, string exefile, string extra_obj, var opts)
var file = new [ 'File' ];
string manifest_file_name = exefile + '.manifest';
var manifest_exists = file.exists(manifest_file_name);
if (manifest_exists != 0) {
if (manifest_exists != 0 && has_mt) {
# MSVC app manifest exists, embed it
string embed_manifest_str = 'mt.exe -nologo -manifest ' +
manifest_file_name +
Expand Down

0 comments on commit 116978a

Please sign in to comment.