Skip to content

Commit

Permalink
TESTING: uncomment shellHook
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Sylvester Bauer <[email protected]>
  • Loading branch information
sylv-io committed Oct 16, 2024
1 parent ca2c666 commit 29f9c60
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,22 @@
#gdb
#openocd
];
shellHook= ''
# Configure CLANG, LLVM_AR, and LLVM_NM for `make wasi-libc`.
# Without setting these explicitly, Homebrew versions might be used
# or the default `ar` and `nm` tools might be used (which don't
# support wasi).
export CLANG="clang-18 -resource-dir ${llvmPackages_18.clang.cc.lib}/lib/clang/18"
export LLVM_AR=llvm-ar
export LLVM_NM=llvm-nm
#shellHook= ''
# # Configure CLANG, LLVM_AR, and LLVM_NM for `make wasi-libc`.
# # Without setting these explicitly, Homebrew versions might be used
# # or the default `ar` and `nm` tools might be used (which don't
# # support wasi).
# export CLANG="clang-18 -resource-dir ${llvmPackages_18.clang.cc.lib}/lib/clang/18"
# export LLVM_AR=llvm-ar
# export LLVM_NM=llvm-nm

# Make `make smoketest` work (the default is `md5`, while Nix only
# has `md5sum`).
export MD5SUM=md5sum
# # Make `make smoketest` work (the default is `md5`, while Nix only
# # has `md5sum`).
# export MD5SUM=md5sum

# Ugly hack to make the Clang resources directory available.
export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_18.clang.cc.lib}/lib/clang/18\" -tags=llvm18"
'';
# # Ugly hack to make the Clang resources directory available.
# export GOFLAGS="\"-ldflags=-X github.com/tinygo-org/tinygo/goenv.clangResourceDir=${llvmPackages_18.clang.cc.lib}/lib/clang/18\" -tags=llvm18"
#'';
};
}
);
Expand Down

0 comments on commit 29f9c60

Please sign in to comment.