mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +00:00 
			
		
		
		
	Use raw module format to fix -gmodules crash
To avoid `llvm::report_fatal_error("unknown module format")` in getPCHContainerWriter.
See a3e2ff19e5
			
			
This commit is contained in:
		
							parent
							
								
									2468edc0b3
								
							
						
					
					
						commit
						8bc3959537
					
				@ -175,6 +175,8 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
 | 
			
		||||
  ci->getPreprocessorOpts().ImplicitPCHInclude.clear();
 | 
			
		||||
  ci->getPreprocessorOpts().PrecompiledPreambleBytes = {0, false};
 | 
			
		||||
  ci->getPreprocessorOpts().PCHThroughHeader.clear();
 | 
			
		||||
 | 
			
		||||
  ci->getHeaderSearchOpts().ModuleFormat = "raw";
 | 
			
		||||
  return ci;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user