Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed Nov 16, 2023
1 parent c4375b2 commit 19424a5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Source/DafnyStandardLibraries/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ check-binary: build-binary
unzip -o ${DOO_FILE_ARITHMETIC_SOURCE} -d build/current-arithmetic
unzip -o ${DOO_FILE_ARITHMETIC_TARGET} -d build/rebuilt-arithmetic
diff build/current-arithmetic build/rebuilt-arithmetic
make -C src/DafnyStdLibs/FileIO check-binary-all
make -C src/DafnyStdLibs/TargetSpecific check-binary-all

update-binary: build-binary
cp ${DOO_FILE_SOURCE} ${DOO_FILE_TARGET}
cp ${DOO_FILE_ARITHMETIC_SOURCE} ${DOO_FILE_ARITHMETIC_TARGET}
make -C src/DafnyStdLibs/FileIO update-binary-all
make -C src/DafnyStdLibs/TargetSpecific update-binary-all
# Rebuild Dafny to pick up the new embedded assets
dotnet build ../Dafny.sln

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
/*
* Private API - these are intentionally not exported from the module and should not be used elsewhere
*/
module
module
{:compile false}
{:extern "DafnyStdLibs_FileIOInternalExterns"}
{:dummyImportMember "INTERNAL__ReadBytesFromFile", false}
{:extern "DafnyStdLibs_FileIOInternalExterns"}
{:dummyImportMember "INTERNAL__ReadBytesFromFile", false}
DafnyStdLibs.FileIOInternalExterns {
method
{:extern}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*/
module DafnyStdLibs.FileIOInternalExterns {
method
INTERNAL_ReadBytesFromFile(path: string)
INTERNAL_ReadBytesFromFile(path: string)
returns (isError: bool, bytesRead: seq<bv8>, errorMsg: string)

method
INTERNAL_WriteBytesToFile(path: string, bytes: seq<bv8>)
INTERNAL_WriteBytesToFile(path: string, bytes: seq<bv8>)
returns (isError: bool, errorMsg: string)
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ build-binary:
--output:${DOO_FILE_SOURCE}

check-binary: build-binary
unzip -o ${DOO_FILE_SOURCE} -d build/current
unzip -o ${DOO_FILE_TARGET} -d build/rebuilt
diff build/current build/rebuilt
unzip -o ${DOO_FILE_SOURCE} -d ../../../build/current
unzip -o ${DOO_FILE_TARGET} -d ../../../build/rebuilt
diff ../../../build/current ../../../build/rebuilt

check-binary-all:
make check-binary TARGETLANG=notarget
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyStandardLibraries/src/dfyconfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ excludes = [
# *Nonlinear.dfy in Arithmetic/Internals/ are subject to the options here
"**/Arithmetic/*.dfy", "**/Arithmetic/**/*Internals.dfy",
# Built per-target language instead
"**/TargetSpecfic/*.dfy"
"**/TargetSpecific/*.dfy"
]

[options]
Expand Down

0 comments on commit 19424a5

Please sign in to comment.