File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ using Args = std::vector<const char*>;
2828
2929void * createInterpreter (const  Args &ExtraArgs = {}) {
3030  Args ClangArgs = {/* "-xc++"*/ " -v" 
31+ #ifndef  EMSCRIPTEN
3132  if  (std::find_if (ExtraArgs.begin (), ExtraArgs.end (), [](const  std::string& s) {
3233    return  s == " -resource-dir" end ()) {
3334    std::string resource_dir = Cpp::DetectResourceDir ();
@@ -42,6 +43,7 @@ void* createInterpreter(const Args &ExtraArgs = {}) {
4243    ClangArgs.push_back (" -isystem" 
4344    ClangArgs.push_back (CxxInclude.c_str ());
4445  }
46+ #endif 
4547  ClangArgs.insert (ClangArgs.end (), ExtraArgs.begin (), ExtraArgs.end ());
4648  //  FIXME: We should process the kernel input options and conditionally pass
4749  //  the gpu args here.
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments