Skip to content

Commit 9a08a8d

Browse files
authored
Add -lm to C compilation
1 parent 03df220 commit 9a08a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build_codeql_language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def main():
1818

1919

2020
def build_c(path: Path) -> List[str]:
21-
return ["gcc", "-o", path.stem, path.name]
21+
return ["gcc", "-o", path.stem, "-lm", path.name]
2222

2323

2424
def build_cpp(path: Path) -> List[str]:

0 commit comments

Comments
 (0)