##// END OF EJS Templates
setup: move osutil_ldflags logic to before extmodules definition
Adrian Buehlmann -
r25073:c1a9e31b default
parent child Browse files
Show More
@@ -484,6 +484,11 pymodules = []
484
484
485 common_depends = ['mercurial/util.h']
485 common_depends = ['mercurial/util.h']
486
486
487 osutil_ldflags = []
488
489 if sys.platform == 'darwin':
490 osutil_ldflags += ['-framework', 'ApplicationServices']
491
487 extmodules = [
492 extmodules = [
488 Extension('mercurial.base85', ['mercurial/base85.c'],
493 Extension('mercurial.base85', ['mercurial/base85.c'],
489 depends=common_depends),
494 depends=common_depends),
@@ -500,11 +505,6 extmodules = [
500 depends=common_depends),
505 depends=common_depends),
501 ]
506 ]
502
507
503 osutil_ldflags = []
504
505 if sys.platform == 'darwin':
506 osutil_ldflags += ['-framework', 'ApplicationServices']
507
508 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
508 extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'],
509 extra_link_args=osutil_ldflags,
509 extra_link_args=osutil_ldflags,
510 depends=common_depends))
510 depends=common_depends))
General Comments 0
You need to be logged in to leave comments. Login now