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

Commit 41152a6

Browse files
committed
Add -lm for C compilation
1 parent 62c9906 commit 41152a6

File tree

1 file changed

+1
-1
lines changed
  • python/languages

1 file changed

+1
-1
lines changed

python/languages/c.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_compilation_command(self, source_filenames: List[str],
103103
cmd += ["-DEVAL"]
104104
if target_arch == Arch.I686:
105105
cmd += ["-m32"]
106-
cmd += ["-O2", "-std=c11", "-Wall", "-ggdb3", "-o", exe_name]
106+
cmd += ["-O2", "-std=c11", "-Wall", "-ggdb3", "-lm", "-o", exe_name]
107107
cmd += source_filenames
108108
return CommandType.SYSTEM, cmd
109109

0 commit comments

Comments
 (0)