Skip to content

Commit 06cbba2

Browse files
bottlerfacebook-github-bot
authored andcommitted
Don't force C++14
Summary: Remove compiler arguments which insist on C++14. Reviewed By: kjchalup Differential Revision: D38858887 fbshipit-source-id: 542173ec97cacfa724d14c8a4b9ce9dc2457c5d5
1 parent 7ce31b4 commit 06cbba2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get_extensions():
4949
source_cuda = glob.glob(os.path.join(extensions_dir, "**", "*.cu"), recursive=True)
5050
extension = CppExtension
5151

52-
extra_compile_args = {"cxx": ["-std=c++14"]}
52+
extra_compile_args = {"cxx": []}
5353
define_macros = []
5454
include_dirs = [extensions_dir]
5555

@@ -73,8 +73,6 @@ def get_extensions():
7373
"-D__CUDA_NO_HALF_CONVERSIONS__",
7474
"-D__CUDA_NO_HALF2_OPERATORS__",
7575
]
76-
if os.name != "nt":
77-
nvcc_args.append("-std=c++14")
7876
if cub_home is None:
7977
prefix = os.environ.get("CONDA_PREFIX", None)
8078
if prefix is not None and os.path.isdir(prefix + "/include/cub"):

0 commit comments

Comments
 (0)