fix: last hardcoded "platform" in file.rs

This commit is contained in:
rvcas 2020-12-06 14:13:24 -05:00
parent 7fabb04518
commit b130f86fdf

View file

@ -1868,13 +1868,7 @@ fn load_pkg_config<'a>(
) -> Result<Msg<'a>, LoadingProblem> { ) -> Result<Msg<'a>, LoadingProblem> {
let module_start_time = SystemTime::now(); let module_start_time = SystemTime::now();
let mut filename = PathBuf::from(src_dir); let filename = PathBuf::from(src_dir);
filename.push("platform");
filename.push(PKG_CONFIG_FILE_NAME);
// End with .roc
filename.set_extension(ROC_FILE_EXTENSION);
let file_io_start = SystemTime::now(); let file_io_start = SystemTime::now();
let file = fs::read(&filename); let file = fs::read(&filename);
@ -2081,7 +2075,7 @@ fn parse_header<'a>(
if pkg_config_roc.as_path().exists() { if pkg_config_roc.as_path().exists() {
let load_pkg_config_msg = load_pkg_config( let load_pkg_config_msg = load_pkg_config(
arena, arena,
&pkg_config_dir, &pkg_config_roc,
shorthand, shorthand,
module_ids, module_ids,
package_module_ids, package_module_ids,