File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ ERLANG_VARS_ENV_MAP = {
2+ "OTP_VERSION" : "$(OTP_VERSION)" ,
3+ "OTP_VERSION_FILE_PATH" : "$(OTP_VERSION_FILE_PATH)" ,
4+ "OTP_VERSION_FILE_SHORT_PATH" : "$(OTP_VERSION_FILE_SHORT_PATH)" ,
5+ "ERLANG_HOME" : "$(ERLANG_HOME)" ,
6+ }
7+
8+ ERLANG_VARS_ENV_MAP_INTERNAL = ERLANG_VARS_ENV_MAP | {
9+ "OTP_INSTALL_PATH" : "$(OTP_INSTALL_PATH)" ,
10+ "ERLANG_RELEASE_TAR_PATH" : "$(ERLANG_RELEASE_TAR_PATH)" ,
11+ "ERLANG_RELEASE_TAR_SHORT_PATH" : "$(ERLANG_RELEASE_TAR_SHORT_PATH)" ,
12+ }
13+
114def _impl (ctx ):
215 otpinfo = ctx .toolchains ["//tools:toolchain_type" ].otpinfo
316 vars = {
417 "OTP_VERSION" : otpinfo .version ,
18+ "OTP_VERSION_FILE_PATH" : otpinfo .version_file .path ,
19+ "OTP_VERSION_FILE_SHORT_PATH" : otpinfo .version_file .short_path ,
520 "ERLANG_HOME" : otpinfo .erlang_home ,
621 }
722 if otpinfo .release_dir_tar != None :
23+ vars ["OTP_INSTALL_PATH" ] = otpinfo .install_path
824 vars ["ERLANG_RELEASE_TAR_PATH" ] = otpinfo .release_dir_tar .path
925 vars ["ERLANG_RELEASE_TAR_SHORT_PATH" ] = otpinfo .release_dir_tar .short_path
1026
11- return [platform_common .TemplateVariableInfo (vars )]
27+ return [
28+ platform_common .TemplateVariableInfo (vars ),
29+ ]
1230
1331erlang_vars = rule (
1432 implementation = _impl ,
You can’t perform that action at this time.
0 commit comments