this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set --sysroot in mruby for macOS Clang

+5
+4
CMakeLists.txt
··· 249 249 else() 250 250 set(MRUBY_TOOLCHAIN gcc) 251 251 endif() 252 + if(APPLE) 253 + exec_program(xcrun ARGS --sdk macosx --show-sdk-path OUTPUT_VARIABLE MRUBY_SYSROOT) 254 + endif() 252 255 message(NOTICE "\ 253 256 Caveat:\n\ 254 257 * mruby target (\"target\") will attempt to use the same toolchain as \ ··· 267 270 "TARGET_CFLAGS=${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BUILD_TYPE_UC}}" 268 271 "TARGET_LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_LINKER_FLAGS_${BUILD_TYPE_UC}}" 269 272 "BUILD_TYPE=${BUILD_TYPE_UC}" 273 + "MRUBY_SYSROOT=${MRUBY_SYSROOT}" 270 274 "MRUBY_TOOLCHAIN=${MRUBY_TOOLCHAIN}" 271 275 INSTALL_COMMAND "" 272 276 BUILD_BYPRODUCTS ${MRUBY_LIB}
+1
mruby/tic_default.rb
··· 20 20 cc.command = ENV["TARGET_CC"] || 'cc' 21 21 cc.flags = [ENV["TARGET_CFLAGS"] || %w()] 22 22 cc.flags << '-fPIC' unless ENV['MRUBY_TOOLCHAIN'] == 'visualcpp' 23 + cc.flags << "-isysroot #{ENV['MRUBY_SYSROOT']}" unless ENV['MRUBY_SYSROOT'].empty? 23 24 end 24 25 25 26 conf.linker do |linker|