Skip to content

Commit

Permalink
enable c in macos ci and updating tcc
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishoywadea committed Feb 19, 2025
1 parent 952b096 commit c2e77dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ jobs:
- name: Set up the environment
run: sh ./tools/metacall-environment.sh $METACALL_INSTALL_OPTIONS
env:
METACALL_INSTALL_OPTIONS: base python nodejs typescript java ruby wasm rpc file cobol go backtrace #netcore5 c rust rapidjson funchook swig pack # clangformat v8rep51 coverage
METACALL_INSTALL_OPTIONS: base python nodejs typescript java ruby wasm rpc file cobol go backtrace c #netcore5 rust rapidjson funchook swig pack # clangformat v8rep51 coverage

- name: Configure
run: |
cd build
. .env
bash ../tools/metacall-configure.sh $METACALL_CONFIGURE_OPTIONS
env:
METACALL_CONFIGURE_OPTIONS: ${{ matrix.options.build }} ${{ matrix.options.sanitizer }} scripts ports tests python nodejs typescript java ruby wasm rpc file cobol go benchmarks install # netcore5 c rust examples pack # v8 coverage
METACALL_CONFIGURE_OPTIONS: ${{ matrix.options.build }} ${{ matrix.options.sanitizer }} scripts ports tests python nodejs typescript java ruby wasm rpc file cobol go benchmarks install c # netcore5 rust examples pack # v8 coverage

- name: Build
working-directory: ./build
Expand Down
6 changes: 3 additions & 3 deletions cmake/InstallLibTCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ else()
endif()

set(LIBTCC_TARGET libtcc-depends)
set(LIBTCC_COMMIT_SHA "afc1362")
set(LIBTCC_COMMIT_SHA "f8bd136")
if(PROJECT_OS_FAMILY STREQUAL macos)
# TODO: --disable-static is not working on MacOS, this should be reported or further investigated, remove this when it is solved
set(LIBTTC_LIBRARY_NAME "${CMAKE_STATIC_LIBRARY_PREFIX}tcc${CMAKE_STATIC_LIBRARY_SUFFIX}")
Expand All @@ -145,8 +145,8 @@ set(LIBTTC_RUNTIME_FILES
# LibTCC Proejct
ExternalProject_Add(${LIBTCC_TARGET}
DOWNLOAD_NAME tinycc.tar.gz
URL https://github.com/metacall/tinycc/archive/${LIBTCC_COMMIT_SHA}.tar.gz
URL_MD5 5582b17ee5848aeec28bee13773843f7
URL https://github.com/Bishoywadea/tinycc/archive/${LIBTCC_COMMIT_SHA}.tar.gz
URL_MD5 1031bd56e751ce19bae85bd86a82f107
CONFIGURE_COMMAND ${LIBTCC_CONFIGURE}
BUILD_COMMAND ${LIBTCC_BUILD}
BUILD_IN_SOURCE true
Expand Down
2 changes: 1 addition & 1 deletion tools/metacall-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ sub_c(){
$SUDO_CMD apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing tcc
$SUDO_CMD apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/v3.16/main clang-libs=13.0.1-r1 clang-dev=13.0.1-r1
fi
elif [ "${OPERATIVE_SYSTEM}" = "Darwin" ]; then
elif [[ $OSTYPE == 'darwin'* ]]; then
brew install libffi
brew install llvm@$LLVM_VERSION_STRING
brew link llvm@$LLVM_VERSION_STRING --force --overwrite
Expand Down

0 comments on commit c2e77dd

Please sign in to comment.