Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autowrap.lisp - clang path outdated ? #171

Open
rpx99 opened this issue Sep 19, 2024 · 0 comments
Open

autowrap.lisp - clang path outdated ? #171

rpx99 opened this issue Sep 19, 2024 · 0 comments

Comments

@rpx99
Copy link

rpx99 commented Sep 19, 2024

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))
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant