lewissbaker / cake

Cake is a fast build system written in Python.
MIT License
20 stars 6 forks source link

usemodule example fails when MinGW is used #13

Open donno opened 7 years ago

donno commented 7 years ago

The resulting error message is:

  File "D:\VCS\cake\src\cake\library\compilers\gcc.py", line 506, in _getCommonLinkArgs
    if dll and self.importLibrary is not None:
AttributeError: 'WindowsMinGWCompiler' object has no attribute 'importLibrary'

Based on MacGccCompiler, the WindowsMinGWCompiler should be extending _getLinkCommands() such that the importLibrary parameter is available rather than trying to access it from self.

If it was self.importLibrary , it seems kind of strange as that would seemily imply the Compiler only has one such import library path.

lewissbaker commented 7 years ago

Thanks for bug report. I'll look into it.

See https://github.com/lewissbaker/cake/blob/master/src/cake/library/compilers/gcc.py#L505