[sledge] Return dbg and opt build targets

Summary:
Running `dune build check` while `dune build --watch` is running
intermittently produces strange errors due to race conditions between
the two.

Reviewed By: mbouaziz

Differential Revision: D12854510

fbshipit-source-id: 348a902bc
master
Josh Berdine 6 years ago committed by Facebook Github Bot
parent 172b804838
commit 6df666b87b

@ -3,11 +3,6 @@
# This source code is licensed under the MIT license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. # LICENSE file in the root directory of this source tree.
# Expected workflow is to launch `make watch` in a terminal to
# continuously rebuild when files change, and to use `make check` in
# the editor to quickly type-check and populate files used by merlin
# for cross-module information.
.PHONY: default .PHONY: default
default: exes default: exes
@ -31,6 +26,14 @@ check: setup
exes: setup exes: setup
dune build _build/dev/src/sledge.exe _build/release/src/sledge.exe _build/dev/sledge.install _build/release/sledge.install dune build _build/dev/src/sledge.exe _build/release/src/sledge.exe _build/dev/sledge.install _build/release/sledge.install
.PHONY: dbg
dbg: setup
dune build _build/dev/src/sledge.exe _build/dev/sledge.install
.PHONY: opt
opt: setup
dune build _build/release/src/sledge.exe _build/release/sledge.install
.PHONY: watch .PHONY: watch
watch: setup watch: setup
dune build --watch _build/dev/src/sledge.exe _build/release/src/sledge.exe dune build --watch _build/dev/src/sledge.exe _build/release/src/sledge.exe

Loading…
Cancel
Save