File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ kt_js_library = rule(
89
89
),
90
90
"_toolchain" : attr .label (
91
91
doc = """The Kotlin JS Runtime.""" ,
92
- default = Label ("@" + _KT_COMPILER_REPO + "// :kotlin-stdlib-js" ),
92
+ default = Label ("//kotlin/compiler :kotlin-stdlib-js" ),
93
93
cfg = "target" ,
94
94
),
95
95
},
@@ -104,11 +104,13 @@ kt_js_library = rule(
104
104
provides = [_KtJsInfo ],
105
105
)
106
106
107
+ _KOTLIN_STDLIB_JS = Label ("//kotlin/compiler:kotlin-stdlib-js" )
108
+
107
109
def kt_js_library_macro (name , ** kwargs ):
108
110
kwargs = _lock_attrs (name , kwargs )
109
111
110
112
# TODO this is a runtime dep, it should be picked up from the _toolchain attr or from a provider.
111
- kwargs ["deps" ] = kwargs .get ("deps" , []) + ["@" + _KT_COMPILER_REPO + "//:kotlin-stdlib-js" ]
113
+ kwargs ["deps" ] = kwargs .get ("deps" , []) + [_KOTLIN_STDLIB_JS ]
112
114
kt_js_library (name = name , ** kwargs )
113
115
114
116
kt_js_import = rule (
You can’t perform that action at this time.
0 commit comments