diff --git a/lutinModule.py b/lutinModule.py index 6e0d226..fbe1e02 100644 --- a/lutinModule.py +++ b/lutinModule.py @@ -143,7 +143,7 @@ class Module: self.flags_cc, self.export_flags_mm, self.export_flags_cc, - "-c -MMD -MP -g", + "-c -MMD -MP", "-x objective-c++", file_src]) # check the dependency for this file : @@ -178,7 +178,7 @@ class Module: self.flags_cc, self.export_flags_m, self.export_flags_cc, - "-c -MMD -MP -g", + "-c -MMD -MP", "-x objective-c", file_src]) # check the dependency for this file : @@ -213,7 +213,7 @@ class Module: self.flags_cc, self.export_flags_xx, self.export_flags_cc, - " -c -MMD -MP -g ", + " -c -MMD -MP", file_src]) # check the dependency for this file : if False==dependency.need_re_build(file_dst, file_src, file_depend, file_cmd, cmdLine): @@ -243,7 +243,7 @@ class Module: depancy.flags_cc, self.flags_cc, self.export_flags_cc, - " -c -MMD -MP -g ", + " -c -MMD -MP", file_src]) # check the dependency for this file : diff --git a/lutinTarget.py b/lutinTarget.py index dc652c7..c9ce628 100644 --- a/lutinTarget.py +++ b/lutinTarget.py @@ -65,10 +65,15 @@ class Target: self.folder_arch="/" + self.name - if "debug"==debugMode: + if "debug" == debugMode: self.buildMode = "debug" + self.global_flags_cc.append("-g") + self.global_flags_cc.append("-DDEBUG") + self.global_flags_cc.append("-O0") else: self.buildMode = "release" + self.global_flags_cc.append("-DNDEBUG") + self.global_flags_cc.append("-O3") self.folder_out="/out" + self.folder_arch + "/" + self.buildMode self.folder_final="/final/" + typeCompilator self.folder_staging="/staging/" + typeCompilator