From 1d8427ef911b1e505b91dcdeb670ccd166c09bcb Mon Sep 17 00:00:00 2001 From: chrischoy Date: Mon, 14 Jun 2021 19:59:01 -0700 Subject: [PATCH] add fno-gnu-unique --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ed0b0c6d..e7bd6401 100644 --- a/setup.py +++ b/setup.py @@ -285,10 +285,10 @@ def _argparse(pattern, argv, is_flag=True, is_list=False): if debug: CC_FLAGS += ["-g", "-DDEBUG"] - NVCC_FLAGS += ["-g", "-DDEBUG"] + NVCC_FLAGS += ["-g", "-DDEBUG", "-Xcompiler=-fno-gnu-unique"] else: CC_FLAGS += ["-O3"] - NVCC_FLAGS += ["-O3"] + NVCC_FLAGS += ["-O3", "-Xcompiler=-fno-gnu-unique"] if "MAX_JOBS" not in os.environ and os.cpu_count() > MAX_COMPILATION_THREADS: # Clip the num compilation thread to 8