aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/sycl/crosstool/CROSSTOOL.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/sycl/crosstool/CROSSTOOL.tpl')
-rwxr-xr-xthird_party/sycl/crosstool/CROSSTOOL.tpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/sycl/crosstool/CROSSTOOL.tpl b/third_party/sycl/crosstool/CROSSTOOL.tpl
index 2108a5b9f0..d767b8ca4a 100755
--- a/third_party/sycl/crosstool/CROSSTOOL.tpl
+++ b/third_party/sycl/crosstool/CROSSTOOL.tpl
@@ -72,6 +72,9 @@ toolchain {
# All warnings are enabled. Maybe enable -Werror as well?
compiler_flag: "-Wall"
+ # Enable SSE instructions by default
+ compiler_flag: "-msse3"
+
# Anticipated future default.
linker_flag: "-Wl,-no-as-needed"
# Stamp the binary with a unique identifier.
@@ -79,4 +82,22 @@ toolchain {
linker_flag: "-Wl,--hash-style=gnu"
linking_mode_flags { mode: DYNAMIC }
+
+ compilation_mode_flags {
+ mode: FASTBUILD
+ compiler_flag: "-O0"
+ }
+
+ compilation_mode_flags {
+ mode: DBG
+ compiler_flag: "-g"
+ }
+
+ compilation_mode_flags {
+ mode: OPT
+ compiler_flag: "-g0"
+ compiler_flag: "-O2"
+ compiler_flag: "-DNDEBUG"
+ }
}
+