Skip to content

Commit

Permalink
Remove specific dwarf version from -g option. (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Enkovich <[email protected]>
  • Loading branch information
ienkovich authored Aug 9, 2024
1 parent 6523765 commit 4d53f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/triton/runtime/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def _build(name, src, srcdir, library_dirs, include_dirs, libraries):
if src.endswith(".cpp") or src.endswith(".cc"):
cc_cmd += ["-std=c++17", "-fopenmp"]
if src.endswith(".s"):
cc_cmd += ["-gdwarf-5"]
# This is required to properly parse .file directives
cc_cmd += ["-g"]
if system == "Linux" and machine in ("aarch64", "arm64"):
# On Arm backend, some CPU (neoverse-v2) needs to be specified through -mcpu
cc_cmd += ["-mcpu=native"]
Expand Down

0 comments on commit 4d53f02

Please sign in to comment.