summaryrefslogtreecommitdiff
path: root/src/rebar_port_compiler.erl
Commit message (Collapse)AuthorAgeFilesLines
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-1/+1
|
* Fix -D handlingJoseph Wayne Norton2012-07-281-6/+6
|
* Fix indentingTuncer Ayaz2012-07-231-1/+1
|
* Finalize port_compiler deprecationsTuncer Ayaz2012-07-231-137/+21
|
* Do not use application:set_envTuncer Ayaz2012-07-231-3/+4
|
* Remove shared stateTuncer Ayaz2012-07-131-17/+20
|
* Merge pull request #157 from dch/dch-windows-msvc-supportDave Smith2012-07-111-1/+25
|\ | | | | add native Windows compiler support
| * Windows: add native SDK supportDave Cottlehuber2012-06-081-1/+25
| | | | | | | | - compatible with rebar 2.0.0
* | Fix #247 (Reported-by: Uvarov Michael)Tuncer Ayaz2012-06-171-2/+1
| |
* | Manually format port_compiler errors with absolute pathTuncer Ayaz2012-06-111-3/+17
|/
* Fix file extension bug (Reported-by: Tony Rogvall)Tuncer Ayaz2012-05-141-3/+3
|
* Do not use inherited port optionsTuncer Ayaz2012-04-231-16/+17
|
* Add support for target-specific port optionsTuncer Ayaz2012-04-161-176/+200
| | | | {port_specs, [{".*", "priv/foo.so", ["c_src/foo.c"], [{env, []}]}]}.
* Deprecate port_envs in favor of port_envTuncer Ayaz2012-03-091-50/+52
|
* Remove debug logTuncer Ayaz2012-02-121-1/+0
|
* Fix regression in port_compiler needs_link checkTuncer Ayaz2012-02-101-6/+12
|
* Use lists:flatmap/2Tuncer Ayaz2012-02-071-6/+6
|
* Rework port compiler supportTuncer Ayaz2012-02-031-75/+200
| | | | | * consolidate options * add support for building executables
* Fix -D and -v handling with new getopt.erlTuncer Ayaz2012-01-291-8/+3
|
* Remove port_first_files supportTuncer Ayaz2012-01-091-22/+3
|
* Fail if erl_interface not foundJesse Gumm2011-12-081-2/+10
| | | | | | Previously if erl_interface could not be found {error, not_found} was incorrectly used as a path. With this change we fail early with a descriptive error message.
* Add support for first_files to port compilerTim Watson2011-11-301-3/+22
| | | | | This patch adds support for first_files to the port_compiler, via the new `port_first_files` rebar config element.
* Remove obsolete comments (thanks Tim Watson)Tuncer Ayaz2011-11-041-8/+0
|
* Fix comments and formattingTuncer Ayaz2011-10-261-7/+11
|
* Overhaul environment expansion for better performanceDave Smith2011-10-261-28/+41
| | | | | | | | | | The introduction of setup_env as a global concept caused the rebar_port_compiler implementation to start getting called a LOT. The expansion of environment variables that happens in the port compiler was O(n^n), which means you could see upwards of 80k invocations of lists:foldl on a single app "./rebar clean". This commit reworks the expansion to be O(n^2), and reduces the running time for the same operation by 60%+. On a large project like Riak, the end result is that a build went from 200 seconds to 73.
* Add -D support to rebar_port_compilerTuncer Ayaz2011-10-231-1/+11
|
* Limit line lengthTuncer Ayaz2011-08-201-2/+4
|
* Support command invocation on Windows without MSYSJan Klötzke2011-08-201-19/+7
| | | | | | If MSYS (with bash) is not installed on Windows then do the shell variable substitution by ourselves. Otherwise just call bash to do the job.
* Extend port compiler default env for Darwin 11 32-bitTuncer Ayaz2011-08-011-1/+6
|
* Apply Tidier suggestionsTuncer Ayaz2011-06-021-1/+1
|
* Make port compilation template configurableJuhani Rankimies2011-06-021-15/+40
| | | | | | - Port compiler no longer requires bash on windows. - It's possible to use compilers whose command lines don't fit into the default template
* Cleanup deprecations now that R14B03 is releasedTuncer Ayaz2011-05-311-41/+1
|
* Extract code to get wordsize into helper functionTuncer Ayaz2011-05-311-8/+1
|
* Use external wordsize to get emulator build archSteve Vinoski2011-05-311-1/+8
| | | | | | | | | | | | | | | Calling erlang:system_info(wordsize) yields the internal word size of the Erlang emulator. But due to the halfword emulator, need to pass {wordsize, external} instead to get the word size, or pointer size, as seen by external code such as NIFs. The halfword emulator has 4 byte internal words but 8 byte external words due to 64-bit compilation, which means NIFs for the halfword emulator also have to be compiled 64-bit. But just passing wordsize is equivalent to passing {wordsize, internal}, which does not indicate the pointer size for the halfword emulator. Older versions of Erlang do not support {wordsize, external}, though, so continue to pass just wordsize for those versions.
* Change arch-specific port_sources to take a listAndrew Tunnell-Jones2011-05-281-6/+6
| | | | | | | | | | Change the second parameter of a regex tagged port_source from being a filename or wildcard to being a list of filenames or wildcards. Previously: {"R14", "c_src/*.c"} Now: {"R14", ["c_src/*.c"]} Motivation for change is to avoid repeating regexes.
* Fix leftover whitespace errorsTuncer Ayaz2011-05-231-9/+9
|
* Fix indentation errorsTuncer Ayaz2011-05-231-37/+36
|
* Fix indentation errorsTuncer Ayaz2011-05-211-36/+37
|
* Change logic to support more port env use casesAnthony Molinaro2011-05-131-11/+41
| | | | | | | | | | | | | | | | | | The logic changes from strict overrides to a hybrid for merging os_env and defaults, whereby defaults are chosen if they are not set in the os_env or if the defaults contains substitutions (at which point os environment is substituted). This still means that rebar.config works as it did before, where it overrides or substitutes based on the use of $VAR, but that default and os environment merging works such that the common cases of providing CC or LDFLAGS in the users environment or command line work as you might expect. In that CC is overriden by the os environment unless rebar.config overrides it, and LDFLAGS from the user environment is appended or prepended based on defaults and rebar.config. Addresses problems with https://github.com/basho/rebar/pull/71 Also keeps the fix for bug 255.
* Fix code readability in port_compilerTuncer Ayaz2011-05-121-15/+15
|
* Add missing newline in port_compiler debug msgTuncer Ayaz2011-04-281-1/+1
|
* Add support for command-specific env for hooksTuncer Ayaz2011-04-211-11/+12
|
* Deprecate fail_on_warning and refactor codeTuncer Ayaz2011-04-071-17/+6
|
* Deprecate old hooksTuncer Ayaz2011-03-121-0/+17
|
* Clean up codeTuncer Ayaz2011-02-061-60/+84
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Use filename:join instead of ?FMTTuncer Ayaz2011-01-281-2/+4
|
* Add support for arch specific port_sourcesAndrew Tunnell-Jones2011-01-171-1/+13
| | | | | | | | | On one project I have a need to specify port_sources on R14 only and on another different project port_sources for Darwin and Linux. To this end add support to handle tuples of the form {ArchRegex, PortSource} in the port_sources list, eg: {port_sources, [{"R14", ["c_src/*.c"]}]}.
* Apply Tidier suggestionsTuncer Ayaz2011-01-131-1/+4
|
* Unify executable invocationJuhani Rankimies2011-01-061-9/+13
| | | | | Add flags to rebar_utils:sh to control output and error handling. Replace calls to os:cmd with calls to rebar_utils:sh.