Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Option to format compiler sources | Garrett Smith | 2016-05-02 | 1 | -2/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default rebar3 displays compiler sources as absolute paths in their original location, which is under the build dir. This change introduces an option 'compiler_source_format' to format sources in two alternative ways: relative absolute When either 'relative' or 'absolute' are specified, the file is resolved to its original location when it is a link. When 'relative' is specified, the path is displayed relative to the current working directory. When 'absolute' is specified, the path is absolute. The default value is 'unchaged' which leaves the compiler source unchanged. This is arguably too flexible as I suspect most people would opt for 'relative' all the time - it's the most compact representation of the file and is sufficient to find the source given cwd. The change however is meant to introduce the change gradually, preserving existing behavior and giving users a choice for formats. In time perhaps the default can be changed to 'relative' - but still allowing users to revert to the other two options ('absolutel' and 'unchanged') as needed. | ||||
* | Add module directory to include path | Luis Rascao | 2016-01-26 | 1 | -2/+3 |
| | | | | | | | | | | Several projects use an include path relative to the project's root. file:compile will look in three places for the include files: The current working directory The directory where the module is being compiled The directories given by the include option | ||||
* | remove mib header file in `priv/mibs/include' | alisdair sullivan | 2015-12-08 | 1 | -7/+1 |
| | |||||
* | symlink mib hrl output in apps `include' directories | alisdair sullivan | 2015-12-06 | 1 | -31/+39 |
| | | | | this restores compatibility with rebar2 and erlang.mk | ||||
* | Added tests and fixed a bug | Phil Toland | 2015-12-01 | 1 | -1/+1 |
| | |||||
* | Fix a small bug in the MIB compiler when building dependencies | Phil Toland | 2015-11-30 | 1 | -4/+8 |
| | | | | | | | When compiling a dependency with a MIB file the generated hrl file is left in the root project directory in a file called "include". This has the perverse effect of messing up the search path for include files causing any dependencies with files in their "include" directory to fail to build after that. | ||||
* | Fix error reports on missing include paths | Fred Hebert | 2015-11-14 | 1 | -1/+1 |
| | | | | | | | In some cases (nested includes?) paths end up in such a way that joining them breaks up and hard-crashes rebar3. This patch specifically handles this scenario to fix things by avoiding passing empty lists to filename:join. | ||||
* | restore debug calls to `rebar_erlc_compiler` and `rebar_prv_eunit` | alisdair sullivan | 2015-10-26 | 1 | -7/+9 |
| | |||||
* | refactor `rebar_erlc_compiler` | alisdair sullivan | 2015-10-26 | 1 | -80/+178 |
| | | | | | | | | | | | | | | | | | | | * modify compiler interface to work on either application objects or directories containing source files * compile all sources in `src_dirs` to the application `ebin` dir and all sources in `extra_src_dirs` to a directory mirroring it's position in the app's `_build` directory. for example, `apps/foo/more` would compile to `_build/default/lib/foo/more` for `extra_src_dirs` in the root of a project with multiple applications (so orphan directories that don't "belong" to an application) compile to `_build/default/extras/more` * copy directories specified in `extra_src_dirs` into the `_build` directory so tools like `ct` and `xref` that expect source to be in a particular location still work * clean compiled artifacts from all `extra_src_dirs` * alter `eunit`, `ct` and `cover` to work with the new directory structure * billions of new tests | ||||
* | Revert "add an export to allow specifing arbitrary extra erl files to be ↵ | alisdair sullivan | 2015-10-26 | 1 | -7/+0 |
| | | | | | | compiled" This reverts commit 9d82215296205d2d30c152c7d7c6fcb8e4a92443. | ||||
* | Support proper paths in non-erl first files | Fred Hebert | 2015-10-12 | 1 | -6/+6 |
| | | | | | This passes the directory to the option to ensure it works with more than configs at the root of the project. | ||||
* | add an export to allow specifing arbitrary extra erl files to be compiled | alisdair sullivan | 2015-09-21 | 1 | -0/+7 |
| | | | | to `rebar_erlc_compiler` | ||||
* | fix dialyzer warnings | Tristan Sloughter | 2015-09-09 | 1 | -3/+3 |
| | |||||
* | move opts functions to new module rebar_opts | Tristan Sloughter | 2015-09-01 | 1 | -8/+8 |
| | |||||
* | update use of hooks and plugins with state in app_info | Tristan Sloughter | 2015-08-31 | 1 | -8/+9 |
| | |||||
* | build on already created AppInfo instead of having to do copy | Tristan Sloughter | 2015-08-31 | 1 | -52/+52 |
| | |||||
* | wip: move state into app_info | Tristan Sloughter | 2015-08-31 | 1 | -48/+49 |
| | |||||
* | update erlcinfo on disk if source file removed | Tristan Sloughter | 2015-08-22 | 1 | -12/+26 |
| | |||||
* | fix leaking ets tables when compilation failed | pvmart | 2015-08-18 | 1 | -11/+14 |
| | |||||
* | fix leaking ets tables caused by digraphs | pvmart | 2015-08-17 | 1 | -1/+4 |
| | |||||
* | Fix some unknown functions/types dialyzer warnings | James Fish | 2015-08-09 | 1 | -1/+1 |
| | |||||
* | ensure necessary directories exist to compile mibs files | Tristan Sloughter | 2015-07-06 | 1 | -2/+5 |
| | |||||
* | methods for retrieving `src_dirs` and `extra_src_dirs` | alisdair sullivan | 2015-05-19 | 1 | -2/+1 |
| | | | | | | note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used | ||||
* | Merge pull request #439 from talentdeficit/extra_src_dirs | Tristan Sloughter | 2015-05-17 | 1 | -1/+2 |
|\ | | | | | generalize the "test" special dir into an {extra_src_dirs, [...]} option | ||||
| * | generalize the "test" special dir into an {extra_src_dirs, [...]} option | alisdair sullivan | 2015-05-16 | 1 | -1/+2 |
| | | | | | | | | | | | | like `src_dirs`, `extra_src_dirs` are directories to be copied to the `_build` dir and compiled. unlike `src_dirs` they are not added to the .app specification | ||||
* | | remove use of `code:load_abs/1` in favor of `beam_lib:chunks/2` to | alisdair sullivan | 2015-05-16 | 1 | -8/+14 |
|/ | | | | avoid repeated loading and unloading of modules | ||||
* | enable parse transformations in rebar config | Tristan Sloughter | 2015-04-26 | 1 | -6/+27 |
| | |||||
* | remove warning if header not found, could be in a macro | Tristan Sloughter | 2015-04-23 | 1 | -4/+0 |
| | |||||
* | real bootstrapping | Tristan Sloughter | 2015-04-22 | 1 | -1/+2 |
| | |||||
* | track and cleanup code paths for different contexts | Tristan Sloughter | 2015-04-21 | 1 | -2/+0 |
| | |||||
* | fix erl_first_files to check entire path of file | Tristan Sloughter | 2015-04-20 | 1 | -3/+4 |
| | |||||
* | remove use of lists:droplast, it doesn't exist pre-17 | Tristan Sloughter | 2015-04-17 | 1 | -1/+1 |
| | |||||
* | Warn on bad use of include_lib but try to find the header anyway | Tristan Sloughter | 2015-04-11 | 1 | -19/+33 |
| | |||||
* | rm old beams, make erlcinfo graph per app isntad of global to project | Tristan Sloughter | 2015-04-10 | 1 | -13/+33 |
| | |||||
* | pass objectfile name to opts_changed instead of recalculating | Tristan Sloughter | 2015-04-10 | 1 | -6/+4 |
| | |||||
* | remove comment that doesn't apply to rebar3 | Tristan Sloughter | 2015-04-10 | 1 | -1/+0 |
| | |||||
* | properly compare list of opts and not against undefined | Tristan Sloughter | 2015-04-10 | 1 | -1/+1 |
| | |||||
* | remove unneeded string:tokens for target_base | Tristan Sloughter | 2015-04-09 | 1 | -2/+1 |
| | |||||
* | fix process attr for include_lib that is just a filename | Tristan Sloughter | 2015-04-08 | 1 | -22/+22 |
| | |||||
* | breakout needs compile check from compile_xrl_yrl | Tristan Sloughter | 2015-04-08 | 1 | -1/+4 |
| | |||||
* | merge rebar2's Refactor logic and optimizations in ↵ | Tristan Sloughter | 2015-04-07 | 1 | -274/+161 |
| | | | | rebar_erlc_compiler:doterl_compile/4 #467 | ||||
* | compile source from the symlinked directories under `_build` to | alisdair sullivan | 2015-03-08 | 1 | -3/+7 |
| | | | | get correct compile paths included in module info | ||||
* | switch from loading modules to read compile info to using `beam_lib` | alisdair sullivan | 2015-03-05 | 1 | -16/+13 |
| | | | | fixes #216 and #220 | ||||
* | change from post-purging modules after checking their module info to | alisdair sullivan | 2015-03-03 | 1 | -4/+2 |
| | | | | pre-purging before checking to facilitate long do chains | ||||
* | copy project apps to deps output dir for compilation | Tristan Sloughter | 2015-02-28 | 1 | -14/+12 |
| | |||||
* | don't unescessarily recompile yrl/xrl files | alisdair sullivan | 2015-02-22 | 1 | -4/+10 |
| | | | | fixes #175 | ||||
* | consolidate app validation and exist checks | Tristan Sloughter | 2015-02-22 | 1 | -1/+1 |
| | |||||
* | follow xdg standard. fixes #122 | Tristan Sloughter | 2015-02-19 | 1 | -3/+3 |
| | |||||
* | purge mods loaded during check to see if they need to be recompiled | alisdair sullivan | 2015-02-17 | 1 | -2/+4 |
| | | | | during compile task before running subsequent tasks | ||||
* | Merge pull request #157 from talentdeficit/real_needs_recompile | Tristan Sloughter | 2015-02-17 | 1 | -9/+26 |
|\ | | | | | check already compiled modules compile arguments against current compile arguments |