Alia
June 20, 2023, 5:48pm
1
I recently built clang17 from source on macOS 10.15
I did set CMAKE_BUILD_TYPE=Release
But the compilation time for C++ is very long. compared to apple-clang and llvm-clang-14
the times are way off for llvm-clang-17
timings are listed here:
the sky.cpp file is from scratchpixel
//[header]
// Simulating the color of the sky (Nishita model).
//
// See "Display of The Earth Taking into Account Atmospheric Scattering" for more information.
//[/header]
//[compile]
// Download the acceleration.cpp and teapotdata.h file to a folder.
// Open a shell/terminal, and run the following command where the files is saved:
//
// clang++ -std=c++11 -o skycolor skycolor.cpp -O3
//
// You can use c++ if you don't use clang++
//
// Run with: ./skycolor. Open the resulting image (ppm) in Photoshop or any program
// reading PPM files.
//[/compile]
//[ignore]
// Copyright (C) 2016 www.scratchapixel.com
//
// This program is free software: you can redistribute it and/or modify
This file has been truncated. show original