Skip to content

Commit b94001f

Browse files
authored
Fix regal build after recent clang change. NFC (#21885)
There appears to be a typo in Regal's linear.h: ``` linear.h:585:26: error: no member named 'negate' in 'Vec4<T>'; did you mean 'Negate'? 585 | Vec4 rv(*this); rv.negate(); return rv; | ^~~~~~ | Negate linear.h:534:11: note: 'Negate' declared here 534 | void Negate() { ``` This was not an issue until llvm/llvm-project#90152 landed. Adding `-fdelayed-template-parsing` seems to fix the issue.
1 parent 42fd234 commit b94001f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/ports/regal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def create(final):
107107
'-I' + source_path_lookup3,
108108
'-I' + source_path_boost,
109109
'-Wno-deprecated-register',
110-
'-Wno-unused-parameter'
110+
'-Wno-unused-parameter',
111+
'-fdelayed-template-parsing',
111112
]
112113
if settings.PTHREADS:
113114
flags += ['-pthread']

0 commit comments

Comments
 (0)