File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,14 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
226
226
stdOut , stdErr , stdIORes = feedback .OutputStreams ()
227
227
}
228
228
229
+ var libraryAbs []string
230
+ for _ , libPath := range paths .NewPathList (library ... ) {
231
+ if libPath , err = libPath .Abs (); err != nil {
232
+ feedback .Fatal (tr ("Error converting path to absolute: %v" , err ), feedback .ErrGeneric )
233
+ }
234
+ libraryAbs = append (libraryAbs , libPath .String ())
235
+ }
236
+
229
237
compileRequest := & rpc.CompileRequest {
230
238
Instance : inst ,
231
239
Fqbn : fqbn ,
@@ -244,7 +252,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
244
252
Clean : clean ,
245
253
CreateCompilationDatabaseOnly : compilationDatabaseOnly ,
246
254
SourceOverride : overrides ,
247
- Library : library ,
255
+ Library : libraryAbs ,
248
256
KeysKeychain : keysKeychain ,
249
257
SignKey : signKey ,
250
258
EncryptKey : encryptKey ,
You can’t perform that action at this time.
0 commit comments