Added -lm to c/c++ compilation
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 Mar 2020 20:33:34 +0000 (15:33 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 Mar 2020 20:33:34 +0000 (15:33 -0500)
executer/app/compilers/c_compiler.coffee
executer/app/compilers/cpp_compiler.coffee

index 64af19b6f003aac3a105262d17aeec3da2a91024..c5051ca0792d0b66e8f43b1f11dba99c7546051f 100644 (file)
@@ -15,6 +15,7 @@ class CCompiler extends BaseCompiler
                        source_file.file_path,
                        './app/compilers/secure/seccomp.c',
                        '-lseccomp',
+                       '-lm',
                        '-std=c11',
                        '-o',
                        exec_file.file_path
index 8539b8040329eca2f4180c965a88798edd342a13..a33c5298980606bb9b0781de4a1c4e0e0540e6d3 100644 (file)
@@ -15,6 +15,7 @@ class CPPCompiler extends BaseCompiler
                        source_file.file_path,
                        './app/compilers/secure/seccomp.c',
                        '-lseccomp',
+                       '-lm',
                        '-std=c++14',
                        '-o',
                        exec_file.file_path