solana_config.toml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [package]
  2. version = "0.1.0"
  3. # Source files to be compiled.
  4. input_files = ["flipper.sol"]
  5. # Contracts to be compiled.
  6. # If no contracts are specified, solang will compile all non-virtual contracts.
  7. contracts = ["flipper"]
  8. # Specify required import paths.
  9. import_path = []
  10. # Define any importmaps.
  11. # import_map = { "@openzeppelin" = "/home/user/libraries/openzeppelin-contracts/" }
  12. import_map = {}
  13. [target]
  14. name = "solana"
  15. [debug-features]
  16. # Log debug prints to the environment.
  17. prints = true
  18. # Log runtime errors to the environment.
  19. log-runtime-errors = true
  20. # Add debug info to the generated llvm IR.
  21. generate-debug-info = false
  22. [optimizations]
  23. dead-storage = true
  24. constant-folding = true
  25. strength-reduce = true
  26. vector-to-slice = true
  27. common-subexpression-elimination = true
  28. # Valid LLVM optimization levels are: none, less, default, aggressive
  29. llvm-IR-optimization-level = "aggressive"
  30. [compiler-output]
  31. verbose = false
  32. # Emit compiler state at early stages. Valid options are: ast-dot, cfg, llvm-ir, llvm-bc, object, asm
  33. # emit = "llvm-ir"
  34. # Output directory for binary artifacts.
  35. # output_directory = "path/to/dir"
  36. # Output directory for the metadata.
  37. # output_meta = "path/to/dir"
  38. # Output everything in a JSON format on STDOUT instead of writing output files.
  39. std_json_output = false