Build: Refactor to reduce duplicated Code (#32)
Build: Refactor to reduce duplicated Code (#32)

- Move duplicate code into build_hermit method
- Use Path and PathBuf instead of Strings
- Trigger a rebuild of hermit when HERMIT_LOG_LEVEL_FILTER changes. This doesn't have the desired effect yet, since cargo won't rebuild the file containing the option_env since it doesn't keep track of option_envs yet. There might be support for it soon though.
hermitcore/rusty-hermit,hermitcore/rusty-hermit