Skip to content

Commit 6789faa

Browse files
committed
hack
1 parent 4223365 commit 6789faa

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
- `list:setAt` can work with negative indexes, and is now bound checked
102102
- re-enabled the AST optimizer, only used for the main `arkscript` executable (not enabled when embedding arkscript, so that one can grab variables from the VM)
103103
- loops have their own scope: variables created inside a loop won't leak outside it
104+
- upgraded fmtlib to 11.1.3-13
104105

105106
### Removed
106107
- removed unused `NodeType::Closure`

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" ST
4040
endif ()
4141

4242
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
43+
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
44+
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
4345

4446
# files needed for the library ArkReactor
4547
file(GLOB_RECURSE SOURCE_FILES
@@ -76,6 +78,7 @@ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG OR APPLE)
7678
-fvisibility=hidden
7779
-fno-semantic-interposition
7880
)
81+
set_target_properties(ArkReactor PROPERTIES LINK_FLAGS "-Wl,-exported_symbol,_Z*fmt*")
7982

8083
if (APPLE)
8184
# The standard SSH libraries are depreciate on APPLE.
@@ -114,7 +117,8 @@ elseif (MSVC)
114117
/wd4267 # disable warning about data loss (size_t -> int)
115118
/wd4244 # disable warning about data loss (size_t -> char)
116119
/wd4505 # disable warning about unused static function was deleted
117-
/wd4068) # disable warnings about unknown pragmas.
120+
/wd4068 # disable warnings about unknown pragmas.
121+
/utf-8)
118122
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:8000000") # set stack size to 8MB
119123
endif ()
120124

lib/fmt

Submodule fmt updated 189 files

0 commit comments

Comments
 (0)