roc icon indicating copy to clipboard operation
roc copied to clipboard

Respect the fileextension with roc build --lib --output file.extension

Open ostcar opened this issue 11 months ago • 0 comments

When you call roc build --lib --output file.EXTENSION, the fileextension is changed to .so. This is as least true for linux.

The reason is this line: https://github.com/roc-lang/roc/blob/62cc19c64b65d2f652d36a06016921f2f8faf183/crates/compiler/build/src/link.rs#L979

This can not be changed without changes on other parts of roc. For example this code expects a filename with a .so extension on target linux and other specific fileextensions for other targets.

ostcar avatar Apr 01 '24 14:04 ostcar