Propogate render target forward

This commit is contained in:
Ayaz Hafiz 2022-04-12 15:45:42 -04:00
parent 15a040ec87
commit ce7c61eb09
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
8 changed files with 51 additions and 12 deletions

View file

@ -424,6 +424,7 @@ pub fn load_modules_for_files(filenames: Vec<PathBuf>) -> Vec<LoadedModule> {
src_dir.as_path(),
Default::default(),
roc_target::TargetInfo::default_x86_64(), // This is just type-checking for docs, so "target" doesn't matter
roc_reporting::report::RenderTarget::ColorTerminal,
) {
Ok(loaded) => modules.push(loaded),
Err(LoadingProblem::FormattedReport(report)) => {