c_ext/c_ext.py
changeset 1474 28e9d479aa65
parent 1473 23045c351012
child 1503 3a238c0c5993
equal deleted inserted replaced
1473:23045c351012 1474:28e9d479aa65
    97         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
    97         Gen_Cfile_path = os.path.join(buildpath, "CFile_%s.c"%location_str)
    98         cfile = open(Gen_Cfile_path,'w')
    98         cfile = open(Gen_Cfile_path,'w')
    99         cfile.write(text)
    99         cfile.write(text)
   100         cfile.close()
   100         cfile.close()
   101         
   101         
   102         matiec_flags = '"-l -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   102         matiec_flags = '"-l -p -I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath())
   103         
   103         
   104         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
   104         return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
   105 
   105