Skip to content

autowrap.lisp - clang path outdated ? #171

Open
@rpx99

Description

@rpx99

The path
(cl:list "/usr/lib/clang/13.0.1/include/")
seems outdated ?

On my system I have version 16, i.e. "/usr/lib/clang/16/include/"

Maybe get / set it dynamically depending on the machine it runs ?

Not sure it works but something like this ?

(defun get-clang-version ()
  (let ((output (uiop:run-program '("clang" "--version") :output :string)))
    (when (string-match "clang version \\([0-9]+\\)" output)
      (match-string 1 output))))

(defun find-clang-include-path ()
  (let ((clang-version (get-clang-version)))
    (when clang-version
      (concatenate 'string "/usr/lib/clang/" clang-version "/include/"))))
      
...
(list (find-clang-include-path))
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions