Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Commit 6c31c63

Browse files
authored
Use system default compiler (#182)
1 parent 392bb28 commit 6c31c63

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131

3232
# Editors
3333
.vscode
34+
.nvim.lua
35+
.nvimrc
36+
.exrc
3437
.clangd
3538
.cache
3639
*.cbp

SConstruct

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@ import fnmatch
66
from config import configure
77

88
Export('configure')
9+
910
env = SConscript("external/SConscript")
1011
env.Tool('compilation_db')
1112

13+
if os.name == 'posix':
14+
if os.environ.get('CXX', None) != None and env['CXX'] != os.environ['CXX']:
15+
print("Using system CXX: {}".format(os.environ['CXX']))
16+
env['CXX'] = os.environ['CXX']
17+
if os.environ.get('CC', None) != None and env['CC'] != os.environ['CC']:
18+
print("Using system CC: {}".format(os.environ['CC']))
19+
env['CC'] = os.environ['CC']
20+
1221
env.Append(CPPDEFINES = ['LAPI_GDEXTENSION'])
1322
env.Append(CPPPATH = [Dir('src').abspath, Dir('external').abspath])
1423

0 commit comments

Comments
 (0)