File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ def x_path(file):
138138 else :
139139 self .binpath = './%s.%s' % (self .name , mccode_config .platform ['EXESUFFIX' ])
140140
141+ # Check if self.path is .exe or .out binary, if so - skip ahead to execution
142+ if options .force_compile or not pathlib .Path (self .path ).suffix == mccode_config .platform ['EXESUFFIX' ]:
143+ return
144+
141145 # Check if c-code should be regenerated by comparing to instr timestamp
142146 existingC = findReusableFile (self .path ,
143147 [self .cpath , x_path (self .cpath )])
Original file line number Diff line number Diff line change @@ -444,12 +444,7 @@ def get_parameters(options):
444444
445445
446446def find_instr_file (instr ):
447- # Remove [-mpi].out to avoid parsing a binary file
448447 instr = clean_quotes (instr )
449- if instr .endswith ("-mpi." + mccode_config .platform ['EXESUFFIX' ]):
450- instr = instr [:- (5 + len (mccode_config .platform ['EXESUFFIX' ]))]
451- if instr .endswith ("." + mccode_config .platform ['EXESUFFIX' ]):
452- instr = instr [:- (1 + len (mccode_config .platform ['EXESUFFIX' ]))]
453448
454449 # Append ".instr" if needed
455450 if not isfile (instr ) and isfile (instr + ".instr" ):
You can’t perform that action at this time.
0 commit comments