debug("making cmake tool chain file for {$os} {$target_arch} with CFLAGS='{$cflags}'"); $root = BUILD_ROOT_PATH; $ccLine = ''; if ($cc) { $ccLine = 'SET(CMAKE_C_COMPILER ' . self::findCommand($cc) . ')'; } $cxxLine = ''; if ($cxx) { $cxxLine = 'SET(CMAKE_CXX_COMPILER ' . self::findCommand($cxx) . ')'; } $toolchain = <<