Files
carbon-lang/core/prelude.carbon
T
Richard SmithandJon Ross-Perkins f5e386a12b Make driver find all prelude files. Add build rule for //examples:sieve. (#3895)
The driver now looks for all files under core/prelude/ and considers
them all to be part of the prelude. The driver also now only processes
the prelude in `--phase=check` and later, when it would actually be
imported.

With that done, add a simple `carbon_binary` build rule and use it to
build the example in `//examples`. This should cause the example to be
built as part of our continuous integration.

---------

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2024-04-19 23:32:00 +00:00

17 lines
590 B
Plaintext

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// AUTOUPDATE
package Core library "prelude" api;
import library "prelude/operators";
import library "prelude/types";
// TODO: Uncomment once name deduplication works.
// TODO: These are here for name lookup. Add a way to export import and move them out.
// fn Int32() -> type = "int.make_type_32";
// fn Float(size: i32) -> type = "float.make_type";
// fn Bool() -> type = "bool.make_type";