Skip to content

Commit

Permalink
Try compiling without stdlib in case that helps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 12, 2024
1 parent fa6a866 commit eb51082
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ jobs:
compiler_package: g++-i686-linux-gnu
c_compiler: i686-linux-gnu-gcc
cpp_compiler: i686-linux-gnu-g++
cmake_args: -DCMAKE_C_FLAGS="-march=i686"
cmake_args: -DCMAKE_C_FLAGS="-march=i686" -DCMAKE_CXX_FLAGS="-march=i686"
- os: linux
arch: aarch64
compiler_package: g++-aarch64-linux-gnu
c_compiler: aarch64-linux-gnu-gcc
cpp_compiler: aarch64-linux-gnu-g++
cmake_args: -DCMAKE_C_FLAGS="-march=armv8-a"
cmake_args: -DCMAKE_C_FLAGS="-march=armv8-a" -DCMAKE_CXX_FLAGS="-march=armv8-a"
- os: linux
arch: arm
compiler_package: g++-arm-linux-gnueabi
c_compiler: arm-linux-gnueabi-gcc
cpp_compiler: arm-linux-gnueabi-g++
cmake_args: -DCMAKE_C_FLAGS="-march=armv7-a"
cmake_args: -DCMAKE_C_FLAGS="-march=armv7-a" -DCMAKE_CXX_FLAGS="-march=armv7-a"
- os: macos
arch: aarch64
cmake_args: -DCMAKE_OSX_ARCHITECTURES=arm64
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ project(OpenSesameNatives

find_package(JNI REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdlib")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdlib")

include_directories(${JNI_INCLUDE_DIRS})
add_library(opensesamenative SHARED
src/cpp/opensesamenative.cpp)

0 comments on commit eb51082

Please sign in to comment.