summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-06-06 19:48:08 -0400
committerFred Hebert <mononcqc@ferd.ca>2016-06-06 19:48:08 -0400
commit76f30b18845039bcd749f0f99164924e04fa1e1c (patch)
tree592cc889b9a89e4c5bfe38bad762a34f1e4c076b /src
parent37abeb40c08813e88a095d3d684f23e3d6c2ee8f (diff)
Rename 'unchanged' option to 'build'
This will allow us to eventually change the default type without it looking ridiculous.
Diffstat (limited to 'src')
-rw-r--r--src/rebar_erlc_compiler.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 4955357..a2eb2e2 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -54,8 +54,8 @@
-define(DEFAULT_OUTDIR, "ebin").
-define(RE_PREFIX, "^[^._]").
--type compiler_source_format() :: absolute | relative | unchanged.
--define(DEFAULT_COMPILER_SOURCE_FORMAT, unchanged).
+-type compiler_source_format() :: absolute | relative | build.
+-define(DEFAULT_COMPILER_SOURCE_FORMAT, build).
%% ===================================================================
%% Public API
@@ -522,7 +522,7 @@ source_format(Opts) ->
?DEFAULT_COMPILER_SOURCE_FORMAT) of
V when V == absolute;
V == relative;
- V == unchanged -> V;
+ V == build -> V;
Other ->
?WARN("Invalid argument ~p for compiler_source_format - "
"assuming ~s~n", [Other, ?DEFAULT_COMPILER_SOURCE_FORMAT]),
@@ -542,7 +542,7 @@ format_error_source(Src, absolute, _Cwd) ->
resolve_linked_source(Src);
format_error_source(Src, relative, Cwd) ->
rebar_dir:make_relative_path(resolve_linked_source(Src), Cwd);
-format_error_source(Src, unchanged, _Cwd) ->
+format_error_source(Src, build, _Cwd) ->
Src.
resolve_linked_source(Src) ->