aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorMagnus Lång <[email protected]>2016-10-18 15:54:40 +0200
committerMagnus Lång <[email protected]>2016-10-18 15:54:40 +0200
commitc8f3ec52716064e0835e2e84329b2257be22acb2 (patch)
treef3212d2d789dca54386902d73463e6f3185e06d2 /lib/kernel
parentbce68cd6ecbdbf04ea6af367f0795d83826420d5 (diff)
downloadotp-c8f3ec52716064e0835e2e84329b2257be22acb2.tar.gz
otp-c8f3ec52716064e0835e2e84329b2257be22acb2.tar.bz2
otp-c8f3ec52716064e0835e2e84329b2257be22acb2.zip
hipe_llvm: Use different symbols for remote calls
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/test/code_SUITE.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl
index 96f8ff2c5f..237f1c46b6 100644
--- a/lib/kernel/test/code_SUITE.erl
+++ b/lib/kernel/test/code_SUITE.erl
@@ -489,7 +489,11 @@ upgrade(Config) ->
T = case erlang:system_info(hipe_architecture) of
undefined -> [beam];
- _ -> [beam,hipe]
+ _ ->
+ case hipe:llvm_support_available() of
+ false -> [beam,hipe];
+ true -> [beam,hipe,hipe_llvm]
+ end
end,
[upgrade_do(DataDir, Client, T) || Client <- T],
@@ -514,7 +518,8 @@ compile_load(Mod, Dir, Ver, CodeType) ->
end,
Target = case CodeType of
beam -> [];
- hipe -> [native]
+ hipe -> [native];
+ hipe_llvm -> [native,{hipe,to_llvm}]
end,
CompOpts = [binary, report] ++ Target ++ Version,