Skip to content

Commit

Permalink
feat: build with debug symbols on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kb173 authored Oct 22, 2024
1 parent bf8029d commit 3d9bee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ elif env['platform'] == "windows":
# Set the compiler to MinGW (is this command valid on native Windows too?)
env.Replace(CXX=['x86_64-w64-mingw32-g++'])

env.Append(CCFLAGS=['-fPIC', '-g'])

gdal_include_path = os.path.join(env['osgeo_path'], "include")
env.Append(CPPPATH=[gdal_include_path])

Expand Down

0 comments on commit 3d9bee6

Please sign in to comment.