Skip to content

Commit

Permalink
Merge pull request #88 from srz-zumix/feature/fix_elixir_mix
Browse files Browse the repository at this point in the history
fix elixir mix
  • Loading branch information
srz-zumix authored Jan 15, 2022
2 parents 47468b5 + 2bb13c0 commit a7c466b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wandbox/__elixir__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ def setup_runner(self, args, enable_options, disable_options, runner):
#!/bin/bash
export LC_ALL=en_US.UTF-8
export PATH=/opt/wandbox/{}/bin:$PATH
ERLANG=`cat /opt/wandbox/{}/bin/run-elixir.sh | grep -oe 'erlang-[0-9\\.]*'`
ELIXIR_PATH=$(find /opt/wandbox -name '{}*' -maxdepth 1)
export PATH=$ELIXIR_PATH/bin:$PATH
ERLANG=$(echo $ELIXIR_PATH | grep -oe 'erlang-[0-9\\.]*')
export PATH=/opt/wandbox/$ERLANG/bin:$PATH
{} || echo Unsolved: \"erts_mmap: Failed to create super carrier of size 1024 MB\", Please tell me the solution.
'''
command = 'mix ' + ' '.join(args.sources + args.compile_options)
code = StringIO(shell.format(args.compiler, args.compiler, command))
code = StringIO(shell.format(args.compiler, command))
sys.stdin = code

args.sources[:] = ['-']
Expand Down

0 comments on commit a7c466b

Please sign in to comment.