File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,15 @@ pub fn get_bin_dir() -> PathBuf {
189
189
}
190
190
191
191
pub fn get_bsc ( ) -> PathBuf {
192
- match std:: env:: var ( "RESCRIPT_BSC_EXE" ) {
192
+ let bsc_path = match std:: env:: var ( "RESCRIPT_BSC_EXE" ) {
193
193
Ok ( val) => PathBuf :: from ( val) ,
194
194
Err ( _) => get_bin_dir ( ) . join ( "bsc.exe" ) ,
195
- }
195
+ } ;
196
+
197
+ bsc_path
198
+ . canonicalize ( )
199
+ . expect ( "Could not get bsc path" )
200
+ . to_stripped_verbatim_path ( )
196
201
}
197
202
198
203
pub fn get_rescript_legacy ( root_path : & Path , workspace_root : Option < PathBuf > ) -> PathBuf {
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
2
import { bsc_exe } from '../../cli/common/bins.js' ;
3
3
4
- console . log ( `RESCRIPT_BSC_EXE=${ bsc_exe } ` ) ;
4
+ console . log ( `RESCRIPT_BSC_EXE=' ${ bsc_exe } ' ` ) ;
You can’t perform that action at this time.
0 commit comments