Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 55af0f6

Browse files
committed
Added -ggdb3 to the compiled executables
1 parent 7961c60 commit 55af0f6

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

python/languages/c.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import os.path
33
import re
44
import subprocess
5-
from typing import List
65
from distutils.spawn import find_executable
7-
86
from task_maker.args import Arch
97
from task_maker.languages import CompiledLanguage, CommandType, \
108
LanguageManager, Dependency, make_unique
9+
from typing import List
1110

1211
CXX_INCLUDE = re.compile('#include *["<](.+)[">]')
1312

@@ -104,7 +103,7 @@ def get_compilation_command(self, source_filenames: List[str],
104103
cmd += ["-DEVAL"]
105104
if target_arch == Arch.I686:
106105
cmd += ["-m32"]
107-
cmd += ["-O2", "-std=c11", "-Wall", "-o", exe_name]
106+
cmd += ["-O2", "-std=c11", "-Wall", "-ggdb3", "-o", exe_name]
108107
cmd += source_filenames
109108
return CommandType.SYSTEM, cmd
110109

python/languages/cpp.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/usr/bin/env python3
2-
from typing import List
3-
42
from task_maker.args import Arch
53
from task_maker.languages import CompiledLanguage, CommandType, \
64
LanguageManager, make_unique
75
from task_maker.languages.c import find_c_dependency
6+
from typing import List
87

98

109
class LanguageCPP(CompiledLanguage):
@@ -29,7 +28,7 @@ def get_compilation_command(self, source_filenames: List[str],
2928
cmd += ["-DEVAL"]
3029
if target_arch == Arch.I686:
3130
cmd += ["-m32"]
32-
cmd += ["-O2", "-std=c++14", "-Wall", "-o", exe_name]
31+
cmd += ["-O2", "-std=c++14", "-Wall", "-ggdb3", "-o", exe_name]
3332
cmd += source_filenames
3433
return CommandType.SYSTEM, cmd
3534

0 commit comments

Comments
 (0)