mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Add output file patterns for D tasks on Darwin.
This commit is contained in:
parent
1350ebc7a5
commit
b3b0383840
@ -13,10 +13,15 @@ def d_platform_flags(self):
|
||||
v = self.env
|
||||
if not v.DEST_OS:
|
||||
v.DEST_OS = Utils.unversioned_sys_platform()
|
||||
if Utils.destos_to_binfmt(self.env.DEST_OS) == 'pe':
|
||||
binfmt = Utils.destos_to_binfmt(self.env.DEST_OS)
|
||||
if binfmt == 'pe':
|
||||
v['dprogram_PATTERN'] = '%s.exe'
|
||||
v['dshlib_PATTERN'] = 'lib%s.dll'
|
||||
v['dstlib_PATTERN'] = 'lib%s.a'
|
||||
elif binfmt == 'mac-o':
|
||||
v['dprogram_PATTERN'] = '%s'
|
||||
v['dshlib_PATTERN'] = 'lib%s.dylib'
|
||||
v['dstlib_PATTERN'] = 'lib%s.a'
|
||||
else:
|
||||
v['dprogram_PATTERN'] = '%s'
|
||||
v['dshlib_PATTERN'] = 'lib%s.so'
|
||||
|
Loading…
Reference in New Issue
Block a user