Skip to content

Conversation

everythingfunctional
Copy link
Member

@everythingfunctional everythingfunctional commented Apr 15, 2021

If ar isn't available, use lib to create static library files. Only do this check on Windows (or Unknown) systems. It's almost certainly safe to assume ar exists on all other systems.

Fix #384

Copy link
Member

@LKedward LKedward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @everythingfunctional. I think this looks good for now to get improved support on Windows.


In the future, this functionality may be better placed in fpm_compiler.f90 in order to invoke compiler-specific library tools (e.g. gcc-ar, xiar, xilib) needed for LTO.

@everythingfunctional
Copy link
Member Author

Having addressed the one comment, and with another approval, I'm going to go ahead and merge this. Hopefully it's not too difficult for #449 and #451 to incorporate this.

@everythingfunctional everythingfunctional merged commit a9adf2b into fortran-lang:master Apr 22, 2021
@everythingfunctional everythingfunctional deleted the different-archiver-on-windows branch November 3, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Command Prompt Can't Create Archives
3 participants