@@ -58,8 +58,6 @@ pub struct CompilerArgs {
5858
5959pub fn get_compiler_args (
6060 path : & Path ,
61- rescript_version : Option < String > ,
62- bsc_path : Option < PathBuf > ,
6361 build_dev_deps : bool ,
6462) -> Result < String > {
6563 let filename = & helpers:: get_abs_path ( path) ;
@@ -69,15 +67,6 @@ pub fn get_compiler_args(
6967 let root_rescript_config =
7068 packages:: read_config ( & workspace_root. to_owned ( ) . unwrap_or ( package_root. to_owned ( ) ) ) ?;
7169 let rescript_config = packages:: read_config ( & package_root) ?;
72- let rescript_version = if let Some ( rescript_version) = rescript_version {
73- rescript_version
74- } else {
75- let bsc_path = match bsc_path {
76- Some ( bsc_path) => helpers:: get_abs_path ( & bsc_path) ,
77- None => helpers:: get_bsc ( & package_root, & workspace_root) ,
78- } ;
79- helpers:: get_rescript_version ( & bsc_path)
80- } ;
8170
8271 // make PathBuf from package root and get the relative path for filename
8372 let relative_filename = filename. strip_prefix ( PathBuf :: from ( & package_root) ) . unwrap ( ) ;
@@ -89,7 +78,6 @@ pub fn get_compiler_args(
8978 & rescript_config,
9079 & root_rescript_config,
9180 & relative_filename,
92- & rescript_version,
9381 & workspace_root,
9482 workspace_root. as_ref ( ) . unwrap_or ( & package_root) ,
9583 & contents,
@@ -106,7 +94,6 @@ pub fn get_compiler_args(
10694 & rescript_config,
10795 & root_rescript_config,
10896 & ast_path,
109- & rescript_version,
11097 & relative_filename,
11198 is_interface,
11299 has_interface,
@@ -141,7 +128,6 @@ pub fn initialize_build(
141128 None => helpers:: get_bsc ( & project_root, & workspace_root) ,
142129 } ;
143130 let root_config_name = packages:: read_package_name ( & project_root) ?;
144- let rescript_version = helpers:: get_rescript_version ( & bsc_path) ;
145131
146132 if !snapshot_output && show_progress {
147133 print ! ( "{} {}Building package tree..." , style( "[1/7]" ) . bold( ) . dim( ) , TREE ) ;
@@ -190,7 +176,6 @@ pub fn initialize_build(
190176 root_config_name,
191177 packages,
192178 workspace_root,
193- rescript_version,
194179 bsc_path,
195180 ) ;
196181 packages:: parse_packages ( & mut build_state) ;
0 commit comments