| 18 | toolset.inherit_rules ('darwin', 'gcc') |
| 19 | |
| 20 | def init (version = None, command = None, options = None): |
| 21 | options = to_seq (options) |
| 22 | |
| 23 | condition = common.check_init_parameters ('darwin', None, ('version', version)) |
| 24 | |
| 25 | command = common.get_invocation_command ('darwin', 'g++', command) |
| 26 | |
| 27 | common.handle_options ('darwin', condition, command, options) |
| 28 | |
| 29 | gcc.init_link_flags ('darwin', 'darwin', condition) |
| 30 | |
| 31 | # Darwin has a different shared library suffix |
| 32 | type.set_generated_target_suffix ('SHARED_LIB', ['<toolset>darwin'], 'dylib') |