Skip to content

Commit

Permalink
bigint 빌드를 기본 활성화
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Apr 3, 2024
1 parent 42be3ea commit 248acc0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
- name: Test with snippets
run: |
cd "$GITHUB_WORKSPACE/snippets"
AHEUI="$GITHUB_WORKSPACE/rpaheui-c" ./test.sh --disable logo integer
AHEUI="$GITHUB_WORKSPACE/rpaheui-c" ./test.sh
5 changes: 4 additions & 1 deletion aheui/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
try:
from rpython.rlib import jit
from rpython.rlib.listsort import TimSort
TRACE_LIMIT = jit.PARAMETERS['trace_limit']

RPYTHON = True
except ImportError:
"""Python compatibility."""
RPYTHON = False

def omnipotent(*args, **kw):
return args and args[0]

Expand Down
7 changes: 5 additions & 2 deletions aheui/aheui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
import os

from aheui import const as c
from aheui._compat import jit, unichr, ord, _unicode
from aheui._compat import jit, unichr, ord, _unicode, RPYTHON
from aheui import _argparse
from aheui import compile
from aheui.int import smallint as bigint # import `bigint` to enable bigint
if RPYTHON:
from aheui.int import bigint # Enable bigint in rpython build
else:
from aheui.int import smallint as bigint # smallint or python support


def get_location(pc, stackok, is_queue, program):
Expand Down

0 comments on commit 248acc0

Please sign in to comment.