aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src/compile.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-12-03 11:46:04 +0100
committerBjörn Gustavsson <[email protected]>2013-01-09 12:41:02 +0100
commitf143990aea3ed5dd62952c1ed3d0a052f011626f (patch)
tree791d773a9950dee5481b0be4cd71d78fd32700eb /lib/compiler/src/compile.erl
parent436760217490abd3efaa29d5b593cd8f01729c0e (diff)
downloadotp-f143990aea3ed5dd62952c1ed3d0a052f011626f.tar.gz
otp-f143990aea3ed5dd62952c1ed3d0a052f011626f.tar.bz2
otp-f143990aea3ed5dd62952c1ed3d0a052f011626f.zip
compiler: Remove support for packages
Diffstat (limited to 'lib/compiler/src/compile.erl')
-rw-r--r--lib/compiler/src/compile.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/compiler/src/compile.erl b/lib/compiler/src/compile.erl
index a3120eb917..10e7f5e9ce 100644
--- a/lib/compiler/src/compile.erl
+++ b/lib/compiler/src/compile.erl
@@ -1342,16 +1342,12 @@ save_binary(#compile{code=none}=St) -> {ok,St};
save_binary(#compile{module=Mod,ofile=Outfile,
options=Opts}=St) ->
%% Test that the module name and output file name match.
- %% We must take care to not completely break a packaged module
- %% (even though packages still is as an experimental, unsupported
- %% feature) - so we will extract the last part of a packaged
- %% module name and compare only that.
case member(no_error_module_mismatch, Opts) of
true ->
save_binary_1(St);
false ->
Base = filename:rootname(filename:basename(Outfile)),
- case lists:last(packages:split(Mod)) of
+ case atom_to_list(Mod) of
Base ->
save_binary_1(St);
_ ->