mattintosh note

Hello Raspberry Pi!

OS X × ccache × Ramdisk

ccache のディレクトリを Ramdisk にしてみるテスト。

export CCACHE_DIR=/Volumes/ccache
export CCACHE_MAXSIZE=512M
if
    [ ! -d ${CCACHE_DIR} ] &&
    osascript -e '
        tell application "System Events"
            activate
            display dialog "'"${CCACHE_DIR}"' がありません。新しく作成しますか?" with icon 2
        end tell
    ' &>/dev/null
then
    diskutil eraseVolume HFS+ ccache $(hdiutil attach -nomount ram://$((2048 * ${CCACHE_MAXSIZE%?})))
fi
$ ccache -p
(default) base_dir =
(environment) cache_dir = /Volumes/ccache
(default) cache_dir_levels = 2
(default) compiler =
(default) compiler_check = mtime
(default) compression = false
(default) compression_level = 6
(default) cpp_extension =
(default) direct_mode = true
(default) disable = false
(default) extra_files_to_hash =
(default) hard_link = false
(default) hash_dir = false
(default) log_file =
(default) max_files = 0
(environment) max_size = 512.0M
(default) path =
(default) prefix_command =
(default) read_only = false
(default) recache = false
(default) run_second_cpp = false
(default) sloppiness =
(default) stats = true
(default) temporary_dir =
(default) umask =
(default) unify = false
広告を非表示にする