aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/c.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-07-03 17:51:54 +0200
committerSiri Hansen <[email protected]>2017-07-03 17:51:54 +0200
commitea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c (patch)
tree1d5882fb8e23b9286bafb3ee4d1b9b80fb50f356 /lib/stdlib/src/c.erl
parentf3c1cdd43c4f45bd0333b2ddcc9d78cbcf4c6cf0 (diff)
parentc5a6e3d99144c94ef557da5787c76f12737044d9 (diff)
downloadotp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.tar.gz
otp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.tar.bz2
otp-ea5fbd3f832e4cc7342d33e5d205a8f3fe15af7c.zip
Merge branch 'maint'
Diffstat (limited to 'lib/stdlib/src/c.erl')
-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);