Skip to content

Commit

Permalink
Make paths embedded in Arduino sketch relative, not absolute.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarchodin committed Mar 24, 2021
1 parent 37992b3 commit e543866
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sections.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"Writes the source code of a given section for a given platform to a given stream."
(multiple-value-bind (code filename)
(get-section section platform)
(if filename (format stream "#line 1 \"~a\"~%" filename))
(if filename
(format stream "#line 1 \"~a\"~%"
(uiop:enough-pathname filename
(asdf:system-relative-pathname :ulisp-build ""))))
(if code (write-line code stream)
(warn "No code for section ~a on platform ~a." section platform))))

0 comments on commit e543866

Please sign in to comment.