34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
|
From b1a2cb5cbfc92a775e7dc60d16cdaf45de77789f Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
||
|
Date: Tue, 5 Jun 2012 15:10:12 +0400
|
||
|
Subject: [PATCH 5/9] Allow discarding building ports
|
||
|
|
||
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
||
|
|
||
|
Conflicts:
|
||
|
src/rebar_port_compiler.erl
|
||
|
---
|
||
|
src/rebar_port_compiler.erl | 6 ++++++
|
||
|
1 file changed, 6 insertions(+)
|
||
|
|
||
|
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
|
||
|
index 70ee308..3deeb7c 100644
|
||
|
--- a/src/rebar_port_compiler.erl
|
||
|
+++ b/src/rebar_port_compiler.erl
|
||
|
@@ -253,6 +253,12 @@ get_specs(Config, AppFile) ->
|
||
|
%% No spec provided. Construct a spec
|
||
|
%% from old-school so_name and sources
|
||
|
[port_spec_from_legacy(Config, AppFile)];
|
||
|
+ [{null,[]}] ->
|
||
|
+ [];
|
||
|
+ [null] ->
|
||
|
+ [];
|
||
|
+ [skip] ->
|
||
|
+ [];
|
||
|
PortSpecs ->
|
||
|
Filtered = filter_port_specs(PortSpecs),
|
||
|
OsType = os:type(),
|
||
|
--
|
||
|
1.8.1.4
|
||
|
|