1# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2# file Copyright.txt or https://cmake.org/licensing for details.
3
4
5# This module is shared by multiple languages; use include blocker.
6if(__COMPILER_PATHSCALE)
7  return()
8endif()
9set(__COMPILER_PATHSCALE 1)
10
11macro(__compiler_pathscale lang)
12  # Feature flags.
13  set(CMAKE_${lang}_VERBOSE_FLAG "-v")
14
15  # Initial configuration flags.
16  string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
17  string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
18  string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
19  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
20  string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
21endmacro()
22