set new_options {}
if {[lsearch -exact $options rust] != -1} {
# -fdiagnostics-color is not a rustcc option.
+ } elseif {[lsearch -exact $options hip] != -1} {
+ # -fdiagnostics-color is not a hipcc option.
} else {
set new_options [universal_compile_options]
}
&& [test_compiler_info {gcc-*-*}]
&& !([test_compiler_info {gcc-[0-3]-*}]
|| [test_compiler_info {gcc-4-0-*}])
- && [lsearch -exact $options rust] == -1} {
+ && [lsearch -exact $options rust] == -1
+ && [lsearch -exact $options hip] == -1} {
# Put it at the front to not override any user-provided value.
lappend new_options "early_flags=-fno-stack-protector"
}
+ if {[lsearch -exact $options hip] != -1} {
+ lappend new_options "early_flags=-O0 -ggdb"
+ }
+
# Because we link with libraries using their basename, we may need
# (depending on the platform) to set a special rpath value, to allow
# the executable to find the libraries it depends on.
# 'auto' keywords.
proc gdb_supported_languages {} {
return [list c objective-c c++ d go fortran modula-2 asm pascal \
- opencl rust minimal ada]
+ opencl rust minimal ada hip]
}
# Check if debugging is enabled for gdb.