st/clover: Allow double precision operations

Pass "cl_khr_fp64" preprocessor definition to clang

Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Niels Ole Salscheider 2013-07-02 10:44:37 +02:00 committed by Tom Stellard
parent 19338157c9
commit 81a156d099
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ namespace {
// clc.h requires that this macro be defined:
c.getPreprocessorOpts().addMacroDef("cl_clang_storage_class_specifiers");
c.getPreprocessorOpts().addMacroDef("cl_khr_fp64");
c.getLangOpts().NoBuiltin = true;
c.getTargetOpts().Triple = triple;