[all-commits] [llvm/llvm-project] a16071: [libc] Don't pass -fpie/-ffreestanding on Windows

Caitlyn Cano via All-commits all-commits at lists.llvm.org
Tue Jul 13 13:40:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a16071e409a55cfc83e59eb738fd6144207dd5d1
      https://github.com/llvm/llvm-project/commit/a16071e409a55cfc83e59eb738fd6144207dd5d1
  Author: Caitlyn Cano <caitlyncano at google.com>
  Date:   2021-07-13 (Tue, 13 Jul 2021)

  Changed paths:
    M libc/cmake/modules/LLVMLibCObjectRules.cmake

  Log Message:
  -----------
  [libc] Don't pass -fpie/-ffreestanding on Windows

The current compile options function hardcodes the -fpie and
-ffreestanding flags, which don't exist on Windows. This patch sets the
compilation flags conditionally based on the OS specifics.

Reviewed By: sivachandra, aeubanks

Differential Revision: https://reviews.llvm.org/D105643




More information about the All-commits mailing list