aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-06-28 17:41:36 +0200
committerSiri Hansen <[email protected]>2017-06-29 15:19:51 +0200
commitf63d23c1c8d3d49c1c24ee53047b81d433b002a5 (patch)
treed9fdc2bcecf2bb9cfcc035aae46701612c297be2 /lib/stdlib/src
parent15cfdd3c010d47b9c3ec6f7f59f738bb734b052b (diff)
downloadotp-f63d23c1c8d3d49c1c24ee53047b81d433b002a5.tar.gz
otp-f63d23c1c8d3d49c1c24ee53047b81d433b002a5.tar.bz2
otp-f63d23c1c8d3d49c1c24ee53047b81d433b002a5.zip
Use current dir as default outdir for c:c/1,2
In OTP-20, c:c/1,2 started using the directory of the source file as default output directory. For backwards compatibility reasons this is now reversed so the current directory is used instead.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/c.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/c.erl b/lib/stdlib/src/c.erl
index 4ab9234b81..c04a201ce1 100644
--- a/lib/stdlib/src/c.erl
+++ b/lib/stdlib/src/c.erl
@@ -255,7 +255,7 @@ safe_recompile(File, Options, BeamFile) ->
compile_and_load(File, Opts0) when is_list(Opts0) ->
Opts = [report_errors, report_warnings
| ensure_from(filename:extension(File),
- ensure_outdir(filename:dirname(File), Opts0))],
+ ensure_outdir(".", Opts0))],
case compile:file(File, Opts) of
{ok,Mod} -> %Listing file.
purge_and_load(Mod, File, Opts);