fix shell command to search fsharp on windows

- Must use where instead of which
This commit is contained in:
Corentin Le Molgat
2018-02-22 10:13:55 +01:00
parent f3c4a017d2
commit 7a183f6e43

View File

@@ -5,13 +5,14 @@ CLEAN_FILES=$(FSHARP_ORTOOLS_DLL_NAME).*
# Check for required build tools
ifeq ($(SYSTEM), win)
FSHARP_COMPILER:=fsc
FSHARP_COMPILER_CHECK:=$(shell where $(FSHARP_COMPILER))
FLAG_PREFIX:=/
else
FSHARP_COMPILER:=fsharpc
FSHARP_COMPILER_CHECK:=$(shell which $(FSHARP_COMPILER))
FLAG_PREFIX:=--
endif
FSHARP_COMPILER_CHECK:=$(shell which $(FSHARP_COMPILER))
# Check whether to build Debug or Release version
ifeq (${FSHARP_DEBUG}, 1)