Skip to content

Commit

Permalink
Add i18n data macro to cxxflags in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedsiam0 committed Sep 2, 2023
1 parent 0d57a9a commit 126c1f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Setup for SWIG Python bindings for lttoolbox
from distutils.core import Extension, setup
from sys import platform

compile_args = '@CXXFLAGS@'.split() + '@ICU_CFLAGS@'.split()
LTTB_I18N_DATA = '-DLTTB_I18N_DATA=\"@prefix@/share/@PACKAGE_NAME@/lttoolbox.dat\"'
compile_args = '@CXXFLAGS@'.split() + '@ICU_CFLAGS@'.split() + LTTB_I18N_DATA.split()
link_args = []
if platform == 'darwin':
compile_args += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
Expand Down

0 comments on commit 126c1f9

Please sign in to comment.