Additional options to clang

This commit is contained in:
Andrzej Janik 2021-08-08 02:42:38 +02:00
commit 043172bd9b

View file

@ -189,6 +189,8 @@ impl SpirvModule {
let mut compiler_cmd = Command::new(&cland_exe); let mut compiler_cmd = Command::new(&cland_exe);
compiler_cmd compiler_cmd
.arg(format!("-mcpu={}", device_name)) .arg(format!("-mcpu={}", device_name))
.arg("-nogpulib")
.arg("-mno-wavefrontsize64")
.arg("-O3") .arg("-O3")
.arg("-Xlinker") .arg("-Xlinker")
.arg("--no-undefined") .arg("--no-undefined")