Skip to content

Commit bbe4019

Browse files
authored
Merge pull request #132 from Flow-IPC/isal-59_isal-empty-jem-pfx-build-break-and-style
2 parents 6fd8d7d + 9ee2c25 commit bbe4019

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

conanfile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,20 @@ def generate(self):
7979

8080
# TODO: We're not doing anything wrong here; we tell jemalloc itself to be built with this
8181
# API-name prefix via options.jemalloc.prefix, and then we tell Flow-IPC CMake script(s) what that was via
82-
# JEMALLOC_PREFIX CMake variable (as if via `-DJEMALLOC_PREFIX=je_` to `cmake`). That said
83-
# Flow-IPC CMake script(s) can figure this out by itself; if JEMALLOC_PREFIX is not given, then it
82+
# FLOW_IPC_JEMALLOC_PREFIX CMake variable (as if via `-DFLOW_IPC_JEMALLOC_PREFIX=je_` to `cmake`). But:
83+
# Flow-IPC CMake script(s) can figure this out by itself; if FLOW_IPC_JEMALLOC_PREFIX is not given, then
8484
# it finds jemalloc-config binary, which a normal jemalloc install would put into (install-prefix)/bin,
8585
# and uses it to print the prefix. However commenting out the next line does not work for some reason:
8686
# an error results saying jemalloc-config cannot be found, and that we should either provide path
87-
# to that binary via yet another CMake cache setting; or simply supply the prefix as JEMALLOC_PREFIX.
87+
# to that binary via yet another CMake cache setting; or simply supply the prefix as
88+
# FLOW_IPC_JEMALLOC_PREFIX.
8889
# So this approach is fine; just it would be nice if the Conan magic worked in a more understandable way;
8990
# if Flow-IPC CMake script(s) can find libjemalloc.a and headers, why can't it
9091
# find_program(jemalloc-config)? This slightly suggests something is "off" possibly.
9192
# Still, the bottom line is it works, so this fallback is fine too. One could say it'd be nice to
9293
# test Flow-IPC CMake script(s) smartness in the way that would be more likely used by the user;
9394
# but one could say that is splitting hairs too.
94-
toolchain.variables["JEMALLOC_PREFIX"] = self.options["jemalloc"].prefix
95+
toolchain.variables["FLOW_IPC_JEMALLOC_PREFIX"] = self.options["jemalloc"].prefix
9596

9697
if self.options.build_no_lto:
9798
toolchain.variables["CFG_NO_LTO"] = "ON"

flow

Submodule flow updated 1054 files

0 commit comments

Comments
 (0)