File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ RM := rm
30
30
RM_RF := $(RM ) -rf
31
31
CD := cd
32
32
33
+ ifeq ($(UNAME ) , Darwin)
34
+ DLL := *.dylib
35
+ else
36
+ DLL := *.so
37
+ endif
38
+
33
39
INSTALL_NAME_TOOL := install_name_tool
34
40
35
41
STORE_DIR := store
@@ -88,8 +94,8 @@ bindist-ghc:
88
94
$(INSTALL_D ) " $( BINDIST_OUT_DIR) /bin/"
89
95
$(INSTALL_X ) " out/$( GHC_VERSION) /haskell-language-server-wrapper" " $( BINDIST_OUT_DIR) /bin/haskell-language-server-wrapper"
90
96
$(INSTALL_D ) " $( ROOT_DIR) /$( BINDIST_OUT_DIR) /lib/$( GHC_VERSION) "
91
- $(FIND ) " $( STORE_DIR) /ghc-$( GHC_VERSION) " -type f -name " *.so " -execdir $(INSTALL_X ) " {}" " $( ROOT_DIR) /$( BINDIST_OUT_DIR) /lib/$( GHC_VERSION) /{}" \;
92
- $(FIND ) " $( ROOT_DIR) /$( BINDIST_OUT_DIR) /lib/$( GHC_VERSION) " -type f -name ' *.so ' -execdir $(call set_rpath,,{}) \;
97
+ $(FIND ) " $( STORE_DIR) /ghc-$( GHC_VERSION) " -type f -name " $( DLL ) " -execdir $(INSTALL_X ) " {}" " $( ROOT_DIR) /$( BINDIST_OUT_DIR) /lib/$( GHC_VERSION) /{}" \;
98
+ $(FIND ) " $( ROOT_DIR) /$( BINDIST_OUT_DIR) /lib/$( GHC_VERSION) " -type f -name ' $(DLL) ' -execdir $(call set_rpath,,{}) \;
93
99
94
100
install-ghcs :
95
101
ghcup install ghc recommended
You can’t perform that action at this time.
0 commit comments