Skip to content

Commit

Permalink
Fix compile command
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Jan 15, 2024
1 parent 28bea1b commit 511b8a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file removed rhodium/test/Git/Rhodium/rhodium/test/test.o
Binary file not shown.
4 changes: 2 additions & 2 deletions rhodium/test/ffi_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with Rhodium. If not, see <http://www.gnu.org/licenses/>.
import os
improt platform
import platform
import subprocess
import unittest
from ..model import *
Expand All @@ -42,7 +42,7 @@ def setUpClass(cls):
elif platform.system() == "Windows":
libname = "test.dll"

result = subprocess.run(["gcc", "-shared", "-o", lib_name, "-c", src], capture_output=True)
result = subprocess.run(["gcc", "-shared", "-fPIC", "-o", libname, "-c", src], capture_output=True)
print(result.stdout)
print(result.stderr)
result.check_returncode()
Expand Down

0 comments on commit 511b8a8

Please sign in to comment.