mirror of
				https://github.com/facebookresearch/pytorch3d.git
				synced 2025-11-04 18:02:14 +08:00 
			
		
		
		
	Don't force C++14
Summary: Remove compiler arguments which insist on C++14. Reviewed By: kjchalup Differential Revision: D38858887 fbshipit-source-id: 542173ec97cacfa724d14c8a4b9ce9dc2457c5d5
This commit is contained in:
		
							parent
							
								
									7ce31b4e0f
								
							
						
					
					
						commit
						06cbba2628
					
				
							
								
								
									
										4
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								setup.py
									
									
									
									
									
								
							@ -49,7 +49,7 @@ def get_extensions():
 | 
			
		||||
    source_cuda = glob.glob(os.path.join(extensions_dir, "**", "*.cu"), recursive=True)
 | 
			
		||||
    extension = CppExtension
 | 
			
		||||
 | 
			
		||||
    extra_compile_args = {"cxx": ["-std=c++14"]}
 | 
			
		||||
    extra_compile_args = {"cxx": []}
 | 
			
		||||
    define_macros = []
 | 
			
		||||
    include_dirs = [extensions_dir]
 | 
			
		||||
 | 
			
		||||
@ -73,8 +73,6 @@ def get_extensions():
 | 
			
		||||
            "-D__CUDA_NO_HALF_CONVERSIONS__",
 | 
			
		||||
            "-D__CUDA_NO_HALF2_OPERATORS__",
 | 
			
		||||
        ]
 | 
			
		||||
        if os.name != "nt":
 | 
			
		||||
            nvcc_args.append("-std=c++14")
 | 
			
		||||
        if cub_home is None:
 | 
			
		||||
            prefix = os.environ.get("CONDA_PREFIX", None)
 | 
			
		||||
            if prefix is not None and os.path.isdir(prefix + "/include/cub"):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user