mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-08 18:34:00 +00:00
Added new compiler options to support the Java backend and
Estimated hours taken: 4
Added new compiler options to support the Java backend and
updated documentation to reflect this.
compiler/globals.m:
Removed comment about Java backend not being implemented.
Replaced it by one say that it is work in progress.
compiler/mercury_compile.m:
If Target = java then call the Java backend.
compiler/options.m:
Added new options for compiling Java files:
`--java'
`--java-only'
`--java-compiler' ('--javac')
`--java-flags'
`--java-classpath'
`--java-object-file-extension'
compiler/handle_options.m:
If compiling to Java then don't link.
Added "java" grade.
compiler/mlds_to_java.m
New file.
XXX Currently just prints an error message about
the Java backend not being implemented.
doc/user_guide.texi:
Documented new options for compiling Java files.
scripts/init_grade_options.sh-subr:
scripts/parse_grade_options.sh-subr:
scripts/final_grade_options.sh-subr:
Added support for "java" grade.
This commit is contained in:
@@ -39,9 +39,9 @@ case $stack_trace,$require_tracing,$use_minimal_model in
|
||||
esac
|
||||
|
||||
#
|
||||
# --target asm or IL implies --high-level-code
|
||||
# --target asm, IL or Java implies --high-level-code
|
||||
#
|
||||
case $target in asm|il)
|
||||
case $target in asm|il|java)
|
||||
highlevel_code=true ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user