File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 33
33
build :
34
34
name : Build
35
35
runs-on : macos-latest
36
+ # Set environment variables
37
+ env :
38
+ # We globally set CC and CXX to improve compatibility with .travis.yml
39
+ CC : x86_64-elf-gcc
40
+ CXX : x86_64-elf-g++
36
41
steps :
37
42
- name : Clone repository
38
43
uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -28,18 +28,6 @@ message(STATUS "Crosscompiling : ${CMAKE_CROSSCOMPILING}")
28
28
message (STATUS "System name : ${CMAKE_HOST_SYSTEM_NAME} " )
29
29
message (STATUS "Kernel version : ${CMAKE_SYSTEM_VERSION} " )
30
30
if ((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin" ) OR APPLE )
31
- # Set the Apple MacOSx compilers.
32
- if (CMAKE_VERSION VERSION_LESS "3.6.0" )
33
- include (CMakeForceCompiler)
34
- cmake_force_c_compiler(x86_64-elf-gcc Clang)
35
- cmake_force_cxx_compiler(x86_64-elf-g++ Clang)
36
- else ()
37
- set (CMAKE_C_COMPILER x86_64-elf-gcc)
38
- set (CMAKE_CXX_COMPILER x86_64-elf-g++)
39
- set (CMAKE_AR x86_64-elf-ar)
40
- endif ()
41
- # Speicfy the linker.
42
- set (CMAKE_LINKER x86_64-elf-ld)
43
31
# Specify the linker flags.
44
32
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib" )
45
33
elseif ((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" ) OR WIN32 )
You can’t perform that action at this time.
0 commit comments