Skip to content

Commit

Permalink
build: fix jextract execution on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Dec 8, 2024
1 parent f1f42c1 commit 09dd2ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,18 @@
<skip>${jextract.skip}</skip>
<target name="jextract">
<echo level="info">Generating sources using jextract</echo>
<exec osfamily="windows" executable="${project.basedir}/scripts/jextract.ps1" failonerror="true">
<exec osfamily="windows" executable="powershell" failonerror="true">
<arg value="-NoProfile"/>
<arg value="-ExecutionPolicy"/>
<arg value="bypass"/>
<arg value="-File"/>
<arg value="${project.basedir}/scripts/jextract.ps1"/>
<arg value="${project.basedir}"/>
<arg value="${project.build.directory}"/>
</exec>
<exec osfamily="unix" executable="${project.basedir}/scripts/jextract.sh" failonerror="true">
<exec osfamily="unix" executable="bash" failonerror="true">
<arg value="-eu"/>
<arg value="${project.basedir}/scripts/jextract.sh"/>
<arg value="${project.basedir}"/>
<arg value="${project.build.directory}"/>
</exec>
Expand Down
1 change: 1 addition & 0 deletions scripts/jextract.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ $lib = "$($args[0])/core/lib"
--include-function ts_query_delete `
--include-function ts_query_disable_capture `
--include-function ts_query_disable_pattern `
--include-function ts_query_end_byte_for_pattern `
--include-function ts_query_is_pattern_guaranteed_at_step `
--include-function ts_query_is_pattern_non_local `
--include-function ts_query_is_pattern_rooted `
Expand Down

0 comments on commit 09dd2ad

Please sign in to comment.