You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not really an issue in Futhark, but it affects Futhark and I figured it'd be worth reporting it to maybe add a workaround or at least let others know.
Let's add a debug echo to the getLocation procedure:
whennotdefined(windows):
let fname =$file.getFileName
else:
let fname = ($file.getFileName).replace('/', '\\')
in genMacroDecl. It should be generally safe because / is not a valid character for a filename in Windows anyway
The text was updated successfully, but these errors were encountered:
ghost
changed the title
libclang on Windows sometimes outputs paths that have / in them as path separators instead of \
libclang on Windows sometimes outputs paths with / as path separators instead of \May 9, 2022
It's not really an issue in Futhark, but it affects Futhark and I figured it'd be worth reporting it to maybe add a workaround or at least let others know.
Let's add a debug echo to the
getLocation
procedure:For some reason on Windows
result.filename
might have / for a part (!) of the path:A possible workaround is to add:
to the end of
getLocation
and replacefname
with:in
genMacroDecl
. It should be generally safe because/
is not a valid character for a filename in Windows anywayThe text was updated successfully, but these errors were encountered: