Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into add-interpreted-languages-to-scons
  • Loading branch information
PeanutbutterWarrior authored Dec 5, 2021
commit 46d1caea7062c72c662270c89ee4ee96e24f6419
6 changes: 5 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ go_builder = Builder(action='go build -o $TARGET$PROGSUFFIX $SOURCE')
# For interpreted languages to copy to build directory
copy_builder = Builder(action=Copy('$TARGET', '$SOURCE'))

coconut_builder = Builder(action='coconut $COCONUTFLAGS $SOURCE $TARGET', src_suffix='.coco', target_suffix='.py')

env = Environment(ENV=os.environ,
BUILDERS={'rustc': rust_rustc_builder,
'cargo': rust_cargo_builder,
'Go': go_builder,
'Copier': copy_builder},
'Copier': copy_builder,
'Coconut': coconut_builder},
tools=['gcc', 'gnulink', 'g++', 'gas', 'gfortran'])

Export('env')
Expand All @@ -43,6 +46,7 @@ languages = {
'asm-x64': 's',
'bash': 'bash',
'c': 'c',
'coconut': 'coco',
'cpp': 'cpp',
'fortran': 'f90',
'go': 'go',
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.