Enable experimental library features (jthread) for clang.
This commit is contained in:
		
							parent
							
								
									e9438455ea
								
							
						
					
					
						commit
						a3426f1132
					
				| @ -373,9 +373,10 @@ if env['COMPILER_FAMILY'] == 'gcc' or env['COMPILER_FAMILY'] == 'clang': | |||||||
|         env.Append(CCFLAGS = ['-Wno-missing-field-initializers', '-Wno-maybe-uninitialized']) |         env.Append(CCFLAGS = ['-Wno-missing-field-initializers', '-Wno-maybe-uninitialized']) | ||||||
|         env.Append(CXXFLAGS = ['-Wno-subobject-linkage', '-Wno-dangling-reference', '-Wno-init-list-lifetime', '-Wno-tautological-compare']) |         env.Append(CXXFLAGS = ['-Wno-subobject-linkage', '-Wno-dangling-reference', '-Wno-init-list-lifetime', '-Wno-tautological-compare']) | ||||||
| 
 | 
 | ||||||
|     else: |     else: # clang only | ||||||
|         # no-gnu-anonymous-struct - we don't care |         # no-gnu-anonymous-struct - we don't care | ||||||
|         env.Append(CCFLAGS = ['-Wno-gnu-anonymous-struct']) |         env.Append(CCFLAGS = ['-Wno-gnu-anonymous-struct']) | ||||||
|  |         env.Append(CXXFLAGS = ['-fexperimental-library']) # enable std::jthread | ||||||
|     if build_type == 'debug': |     if build_type == 'debug': | ||||||
|         env.Append(CCFLAGS = ['-g', '-O0'], CPPDEFINES = ['_GLIBCXX_DEBUG']) |         env.Append(CCFLAGS = ['-g', '-O0'], CPPDEFINES = ['_GLIBCXX_DEBUG']) | ||||||
|     elif build_type == 'release_debug' or build_type == 'profile': |     elif build_type == 'release_debug' or build_type == 'profile': | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user