diff --git a/buckbuild.bzl b/buckbuild.bzl index 070e6241dbb619..bb3522b722521d 100644 --- a/buckbuild.bzl +++ b/buckbuild.bzl @@ -156,7 +156,6 @@ def get_pt_compiler_flags(): }) _PT_COMPILER_FLAGS = [ - "-fexceptions", "-frtti", "-Os", "-Wno-unknown-pragmas", @@ -1117,7 +1116,6 @@ def define_buck_targets( deps = [ C10, ], - compiler_flags = ["-fexceptions"], ) # Base library shared by lite-interpreter and full-jit. @@ -1846,7 +1844,6 @@ def define_buck_targets( ":torch_core", C10, ], - compiler_flags = ["-fexceptions"], ) # aten_cpu and aten_native_cpu diff --git a/build.bzl b/build.bzl index 3ad4d3e8f7adc7..8141ee49588003 100644 --- a/build.bzl +++ b/build.bzl @@ -27,7 +27,6 @@ def define_targets(rules): "//c10", "//third_party/miniz-2.1.0:miniz", ], - copts = ["-fexceptions"], ) #