- Commit
- 2562c734da6da6bd57ef6a2179a2eb22dda7b126
- Parent
- ee47f2f66832ec6b3f5254a64616bdc6ed5b8575
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Compile with -fvisibility=hidden.
We'll mark public functions as "default".
My personal build of CMark ✏️
Compile with -fvisibility=hidden.
We'll mark public functions as "default".
1 file changed, 1 insertion, 1 deletion
Status | File Name | N° Changes | Insertions | Deletions |
Modified | src/CMakeLists.txt | 2 | 1 | 1 |
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -89,7 +89,7 @@ if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4") endif() elseif(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=c99 -pedantic") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -Wall -std=c99 -pedantic") endif() if($ENV{TIMER})