MCPcopy Create free account
hub / github.com/numpy/numpy / get_flags_linker_so

Method get_flags_linker_so

numpy/distutils/fcompiler/absoft.py:52–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 f+'.f', '-o', f+'.o']
51
52 def get_flags_linker_so(self):
53 if os.name=='nt':
54 opt = ['/dll']
55 # The "-K shared" switches are being left in for pre-9.0 versions
56 # of Absoft though I don't think versions earlier than 9 can
57 # actually be used to build shared libraries. In fact, version
58 # 8 of Absoft doesn't recognize "-K shared" and will fail.
59 elif self.get_version() >= '9.0':
60 opt = ['-shared']
61 else:
62 opt = ["-K", "shared"]
63 return opt
64
65 def library_dir_option(self, dir):
66 if os.name=='nt':

Callers

nothing calls this directly

Calls 1

get_versionMethod · 0.45

Tested by

no test coverage detected