diff options
author | Björn Gustavsson <[email protected]> | 2012-12-03 11:46:04 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-01-09 12:41:02 +0100 |
commit | f143990aea3ed5dd62952c1ed3d0a052f011626f (patch) | |
tree | 791d773a9950dee5481b0be4cd71d78fd32700eb /lib/compiler/src/compile.erl | |
parent | 436760217490abd3efaa29d5b593cd8f01729c0e (diff) | |
download | otp-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.erl | 6 |
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); _ -> |