Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Link object files when passed in instead of source files #499

Open
hdamron17 opened this issue Aug 9, 2020 · 0 comments
Open

Link object files when passed in instead of source files #499

hdamron17 opened this issue Aug 9, 2020 · 0 comments
Labels
binary Related to the swcc binary enhancement New feature or request

Comments

@hdamron17
Copy link
Collaborator

I know this is silly, but if we receive object files instead of source files we should link them immediately (still using cc) instead of complaining that they are not UTF-8. This will make working with CMake and Make much easier because they expect the compiler to handle the full compilation pipeline and allow separating into multiple stages.

Example

$ swcc -o sample.o -c sample.c
$ swcc -o sample sample.o
// second command currently tries to parse sample.o as source code and gives 'invalid UTF-8 error'
// should link sample.o into the sample executable

@hdamron17 hdamron17 added enhancement New feature or request binary Related to the swcc binary labels Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
binary Related to the swcc binary enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant