Skip to content
Closed
Changes from all commits
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
3 changes: 3 additions & 0 deletions mx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,9 @@ def _get_compliance_jdk(self, compliance):
def prepare(self, sourceFiles, project, jdk, compliance, outputDir, classPath, processorPath, sourceGenDir,
disableApiRestrictions, warningsAsErrors, forceDeprecationAsWarning, showTasks, postCompileActions):
javacArgs = ['-g', '-classpath', classPath, '-d', outputDir]
if jdk.javaCompliance >= "9":
# use javac to generate native headers
javacArgs += ['-h', outputDir]
if compliance >= '1.8':
javacArgs.append('-parameters')
if processorPath:
Expand Down