@@ -74,21 +74,16 @@ defmodule ElixirMake.Compiler do
74
74
env = if is_function ( env ) , do: env . ( ) , else: env
75
75
env = default_env ( config , env )
76
76
77
- # In OTP 19, Erlang's `open_port/2` ignores the current working
78
- # directory when expanding relative paths. This means that `:make_cwd`
79
- # must be an absolute path. This is a different behaviour from earlier
80
- # OTP versions and appears to be a bug. It is being tracked at
81
- # https://bugs.erlang.org/browse/ERL-175.
82
77
cwd = Keyword . get ( config , :make_cwd , "." ) |> Path . expand ( File . cwd! ( ) )
83
78
error_msg = Keyword . get ( config , :make_error_message , :default ) |> os_specific_error_msg ( )
84
79
custom_args = Keyword . get ( config , :make_args , [ ] )
85
80
86
81
if String . contains? ( cwd , " " ) do
87
- IO . warn (
88
- " the absolute path to the makefile for this project contains spaces. Make might " <>
89
- " not work properly if spaces are present in the path. The absolute path is: " <>
90
- inspect ( cwd )
91
- )
82
+ IO . warn ( """
83
+ the absolute path to the Makefile for this project contains spaces. \
84
+ Make might not work properly if spaces are present in the path. \
85
+ The absolute path is: #{ inspect ( cwd ) }
86
+ """ )
92
87
end
93
88
94
89
base = exec |> Path . basename ( ) |> Path . rootname ( )
@@ -124,7 +119,7 @@ defmodule ElixirMake.Compiler do
124
119
defp find_executable ( exec ) do
125
120
System . find_executable ( exec ) ||
126
121
Mix . raise ( """
127
- "#{ exec } " not found in the path. If you have set the MAKE environment variable,
122
+ "#{ exec } " not found in the path. If you have set the MAKE environment variable, \
128
123
please make sure it is correct.
129
124
""" )
130
125
end
0 commit comments