[llvm] 6a817d7 - [CMake] add_definitions => add_compile_definitions after D139752
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 09:34:21 PST 2022
Author: Fangrui Song
Date: 2022-12-20T09:34:14-08:00
New Revision: 6a817d7bdbc59fab8a6f168133379f946025a401
URL: https://github.com/llvm/llvm-project/commit/6a817d7bdbc59fab8a6f168133379f946025a401
DIFF: https://github.com/llvm/llvm-project/commit/6a817d7bdbc59fab8a6f168133379f946025a401.diff
LOG: [CMake] add_definitions => add_compile_definitions after D139752
Suggested by alexreinking (Alex Reinking)
Added:
Modified:
llvm/cmake/config-ix.cmake
Removed:
################################################################################
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 856093ef9c9b0..3c63082dd2b0b 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -339,7 +339,7 @@ if( LLVM_USING_GLIBC )
list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
# enable 64bit off_t on 32bit systems using glibc
if (CMAKE_SIZEOF_VOID_P EQUAL 4)
- add_definitions( -D_FILE_OFFSET_BITS=64 )
+ add_compile_definitions(_FILE_OFFSET_BITS=64)
list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64")
endif()
endif()
More information about the llvm-commits
mailing list