Skip to content

Commit efba20f

Browse files
authored
Compile a native sdb binary when cross building (radareorg#4)
sdb binary may be used by the build machine to compile .sdb files. In that case it is necessary to have the sdb binary compiled for the build machine and not for the host one, as it is by default.
1 parent 724abd2 commit efba20f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

meson.build

+11
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ sdb_exe = executable('sdb', 'src/main.c',
118118
implicit_include_directories: false
119119
)
120120

121+
if meson.is_cross_build()
122+
sdb_native_exe = executable('sdb_native', 'src/main.c',
123+
include_directories: sdb_inc,
124+
link_with: [link_with],
125+
install: false,
126+
implicit_include_directories: false
127+
)
128+
else
129+
sdb_native_exe = sdb_exe
130+
endif
131+
121132
if not meson.is_subproject()
122133
install_man(['src/sdb.1'])
123134
endif

0 commit comments

Comments
 (0)