2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OCaml関連の環境変数設定メモ

Posted at

OCaml を新しい環境にインストールする前に私がやっておくことのメモ.
以下の内容を .zshrc.bash_profile などに書いておく.

.cmt ファイルを生成する

これは 今の dune を使う環境ではいらないのかもしれない

# OCaml
export OCAMLPARAM="_,bin-annot=1" # generate *.cmt (outside dune build)

OPAM 設定 (並列ビルドなど)

並列ビルドは明示的に設定する必要はないかもしれない

eval `opam config env` # OPAM の初期設定を読み込む
export OPAMKEEPBUILDDIR=1 # let opam not remove sources
export OPAMJOBS=16 # 並列ビルド

エラー時のスタックトレースをデフォルトで有効化

export OCAMLRUNPARAM=b # stack backtrace
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?