Add wasm32 support to preprocessed_host_filename

This commit is contained in:
Richard Feldman 2022-11-22 23:02:12 -05:00
parent 2dba97d6a2
commit d9f3e11634
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -89,6 +89,10 @@ const PRECOMPILED_HOST_EXT: &str = "rh1"; // Short for "roc host version 1" (so
pub const fn preprocessed_host_filename(target: &Triple) -> Option<&'static str> {
match target {
Triple {
architecture: Architecture::Wasm32,
..
} => Some(concatcp!("wasm32", '.', PRECOMPILED_HOST_EXT)),
Triple {
operating_system: OperatingSystem::Linux,
architecture: Architecture::X86_64,