mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
741bf9577e
commit
a24a5f77b6
@ -427,7 +427,7 @@ class Build(Command):
|
||||
obj = self.j(obj_dir, os.path.splitext(self.b(src))[0]+'.o')
|
||||
objects.append(obj)
|
||||
if self.newer(obj, [src]+ext.headers):
|
||||
inf = '/Tp' if src.endswith('.cpp') else '/Tc'
|
||||
inf = '/Tp' if src.endswith('.cpp') or src.endswith('.cxx') else '/Tc'
|
||||
sinc = [inf+src] if iswindows else ['-c', src]
|
||||
oinc = ['/Fo'+obj] if iswindows else ['-o', obj]
|
||||
cmd = [compiler] + cflags + ext.cflags + einc + sinc + oinc
|
||||
|
Loading…
x
Reference in New Issue
Block a user