mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Add a special case for the Khronos compiler and always use it for OpenCL C++, otherwise use the same logic as on the cl21_trunk branch. The CMake option to pass the path to the khronos compiler has been renamed to KHRONOS_OFFLINE_COMPILER_OPTIONS and is no longer mandatory. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
31 lines
792 B
YAML
31 lines
792 B
YAML
language: cpp
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
script:
|
|
- export TOP=$(pwd)
|
|
- git clone https://github.com/KhronosGroup/OpenCL-Headers.git
|
|
- cd OpenCL-Headers
|
|
- ln -s CL OpenCL # For OSX builds
|
|
- cd ..
|
|
- git clone https://github.com/KhronosGroup/OpenCL-ICD-Loader.git
|
|
- cd ${TOP}/OpenCL-ICD-Loader
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DOPENCL_ICD_LOADER_HEADERS_DIR=${TOP}/OpenCL-Headers/ ..
|
|
- make
|
|
- cd ${TOP}
|
|
- git clone https://github.com/KhronosGroup/libclcxx.git
|
|
- ls -l
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -DCL_INCLUDE_DIR=${TOP}/OpenCL-Headers
|
|
-DCL_LIB_DIR=${TOP}/OpenCL-ICD-Loader/build
|
|
-DCL_LIBCLCXX_DIR=${TOP}/libclcxx
|
|
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=./bin
|
|
-DOPENCL_LIBRARIES="-lOpenCL -lpthread"
|
|
..
|
|
- make -j2
|