[all-commits] [llvm/llvm-project] 9b84da: build: only pass -UNDEBUG when compiling C/C++

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Sun Feb 2 13:20:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b84dabc5f36f7e027c62b5c00ea97e21cfcacdd
      https://github.com/llvm/llvm-project/commit/9b84dabc5f36f7e027c62b5c00ea97e21cfcacdd
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2020-02-02 (Sun, 02 Feb 2020)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  build: only pass -UNDEBUG when compiling C/C++

This patch limits adding -UNDEBUG to C and C++ files so that projects
can include files compiled with compilers that don't recognize this
argument (Swift e.g.).

add_definitions does not expand generators, hence the change from
add_definitions to add_compile_options.

Patch by Evan Wilde!




More information about the All-commits mailing list