idiap / fast-transformers

Pytorch library for fast transformer implementations
1.65k stars 179 forks source link

Dynamically determine extra_compile_args based on operating system. #61

Closed TariqAHassan closed 3 years ago

TariqAHassan commented 3 years ago

Overview

This PR will prepend the "-Xpreprocessor" arg to extra_compile_args if the operating system is determined to be 'darwin'. This should not impact installation on other operating system.

Closes #6.

angeloskath commented 3 years ago

Thanks, for this! As you can imagine I have no access to a Mac :-).

Cheers, Angelos