File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,13 +106,16 @@ fn dist_server(
106106 dev_rel : bool ,
107107) -> anyhow:: Result < ( ) > {
108108 let _e = sh. push_env ( "CFG_RELEASE" , release) ;
109- let _e = sh. push_env ( "CARGO_PROFILE_RELEASE_DEBUG" , "limited" ) ;
110109 let _e = sh. push_env ( "CARGO_PROFILE_RELEASE_LTO" , "thin" ) ;
111110 let _e = sh. push_env ( "CARGO_PROFILE_RELEASE_CODEGEN_UNITS" , "1" ) ;
112- let _e = sh. push_env ( "CARGO_PROFILE_DEV_REL_DEBUG" , "limited" ) ;
113111 let _e = sh. push_env ( "CARGO_PROFILE_DEV_REL_LTO" , "thin" ) ;
114112 let _e = sh. push_env ( "CARGO_PROFILE_DEV_REL_CODEGEN_UNITS" , "1" ) ;
115113
114+ // Uncomment to enable debug info for releases. Note that:
115+ // * debug info is split on windows and macs, so it does nothing for those platforms,
116+ // * on Linux, this blows up the binary size from 8MB to 43MB, which is unreasonable.
117+ // let _e = sh.push_env("CARGO_PROFILE_RELEASE_DEBUG", "1");
118+
116119 let linux_target = target. is_linux ( ) ;
117120 let target_name = match & target. libc_suffix {
118121 Some ( libc_suffix) if zig => format ! ( "{}.{libc_suffix}" , target. name) ,
You can’t perform that action at this time.
0 commit comments