Skip to content

Commit

Permalink
fix detect_void_size
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHearnden committed May 2, 2023
1 parent f3635ff commit 2c7dbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/modules/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def detect_voidp_size(self, env):
if not compiler:
raise mesonlib.MesonException('Requires a C or C++ compiler to compute sizeof(void *).')

return compiler.sizeof('void *', '', env)
return compiler.sizeof('void *', '', env)[0]

def detect_cmake(self, state):
if self.cmake_detected:
Expand Down

0 comments on commit 2c7dbcf

Please sign in to comment.