(self)
| 344 | return flags |
| 345 | |
| 346 | def get_library_dirs(self): |
| 347 | opt = GnuFCompiler.get_library_dirs(self) |
| 348 | if sys.platform == 'win32': |
| 349 | c_compiler = self.c_compiler |
| 350 | if c_compiler and c_compiler.compiler_type == "msvc": |
| 351 | target = self.get_target() |
| 352 | if target: |
| 353 | d = os.path.normpath(self.get_libgcc_dir()) |
| 354 | root = os.path.join(d, *((os.pardir, ) * 4)) |
| 355 | path = os.path.join(root, "lib") |
| 356 | mingwdir = os.path.normpath(path) |
| 357 | if os.path.exists(os.path.join(mingwdir, "libmingwex.a")): |
| 358 | opt.append(mingwdir) |
| 359 | # For Macports / Linux, libgfortran and libgcc are not co-located |
| 360 | lib_gfortran_dir = self.get_libgfortran_dir() |
| 361 | if lib_gfortran_dir: |
| 362 | opt.append(lib_gfortran_dir) |
| 363 | return opt |
| 364 | |
| 365 | def get_libraries(self): |
| 366 | opt = GnuFCompiler.get_libraries(self) |
nothing calls this directly
no test coverage detected