aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-01 15:53:00 +0200
committerLukas Larsson <[email protected]>2011-08-01 16:37:59 +0200
commit43cb29816f5b4d3b67ef83644f2ea30fa5cadac5 (patch)
tree5fc0c50d6ddb5b73da28ed54e04c8d68219174fa /lib
parentf4b38eec4b0eccab59cdfb0610124bd20c0d7802 (diff)
downloadotp-43cb29816f5b4d3b67ef83644f2ea30fa5cadac5.tar.gz
otp-43cb29816f5b4d3b67ef83644f2ea30fa5cadac5.tar.bz2
otp-43cb29816f5b4d3b67ef83644f2ea30fa5cadac5.zip
Pass compiler options directly through to the asn1 compiler in order to test nif enabled asn1
Diffstat (limited to 'lib')
-rw-r--r--lib/asn1/test/testPrim.erl21
1 files changed, 5 insertions, 16 deletions
diff --git a/lib/asn1/test/testPrim.erl b/lib/asn1/test/testPrim.erl
index 97f99e7b1c..39c1e4d1d8 100644
--- a/lib/asn1/test/testPrim.erl
+++ b/lib/asn1/test/testPrim.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2010. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -37,21 +37,10 @@ compile(Config,Rules,Opt) ->
?line DataDir = ?config(data_dir,Config),
?line OutDir = ?config(priv_dir,Config),
?line true = code:add_patha(?config(priv_dir,Config)),
- case Opt of
- [optimize] ->
- ?line ok = asn1ct:compile(DataDir ++ "Prim",
- [Rules,optimize,{outdir,OutDir}]),
- ?line ok = asn1ct:compile(DataDir ++ "Real",
- [Rules,optimize,{outdir,OutDir}]);
- __ ->
- ?line ok = asn1ct:compile(DataDir ++ "Prim",
- [Rules,{outdir,OutDir}]),
- ?line ok = asn1ct:compile(DataDir ++ "Real",
- [Rules,{outdir,OutDir}])
- end.
-
-
-
+ ?line ok = asn1ct:compile(DataDir ++ "Prim",
+ [Rules,{outdir,OutDir}] ++ Opt),
+ ?line ok = asn1ct:compile(DataDir ++ "Real",
+ [Rules,{outdir,OutDir}] ++ Opt).
bool(Rules) ->