版本 1.0 · 1PL Runtime Library Exception(配套 1PL 第 7 条)
面向编译器、编程语言运行时、标准库与代码生成工具的附加许可:编译器及运行时库本身的修改必须按 1PL 回馈开源,而用户通过合格编译流程生成并打包运行时库的应用产物可按自有条款(包括闭源商业许可)自由分发。
================================================================================
1PL 运行时与编译产物例外
1PL Runtime Library Exception
Version 1.0, November 2026
================================================================================
本《1PL 运行时与编译产物例外》(以下简称"本例外")是《1号公共许可证 (1PL)》
第 7 条所定义的附加许可。它适用于任何包含版权持有人声明、明确指出其受 1PL
约束且同时适用本例外的运行时库、标准库、头文件、宏定义、加载器或平台适配文件
(以下简称"运行时库")。
当您使用受 1PL 约束的编译器、解释器或工具链编译应用程序时,工具链可能会将部分
运行时库、标准库或辅助代码并入、内联或链接进编译产物中。本例外的目的,是在保
持编译器与运行时库本身开源互惠的前提下,允许非 1PL(包括闭源商业)程序自由使
用这些受覆盖的运行时库与目标输出。
第 1 条 定义
--------------------------------------------------------------------------------
1.1 "独立模块"指在编译流程结束后需要依赖运行时库才能执行、或调用运行时库所提
供接口的文件或模块,但其本身并非基于运行时库源代码的修改或衍生作品。
1.2 "受保护编译器"指受 1PL(或版权持有人书面指定之兼容互惠开源许可证)约束的
编译器、代码生成器或工具链本体及其修改版本。
1.3 "兼容开源软件"指其分发、修改与使用条件均允许依据 1PL 与受保护编译器合法组
合的软件。
1.4 "目标代码"指编译器为真实或虚拟目标执行环境生成的输出,包括但不限于可执行
文件、字节码、目标语言源码(如 ECMAScript / JavaScript 模块)、
WebAssembly 模块或可装载镜像;但不包括任何作为编译器中间表示(IR)或用
于生成编译器中间表示的数据结构。
1.5 "编译流程"指将完全以面向人类编写的源码语言(及/或字节码)表达的代码转换为
目标代码的过程。源码生成器与外部预处理器无需计入编译流程。
1.6 "合格编译流程"指完全通过受保护编译器单独或配合兼容开源软件完成的编译流
程,或者完全未使用任何基于受保护编译器的软件的编译流程。例如,接入非兼
容/闭源专有插件来截取或优化受保护编译器中间表示(IR)的流程,不属于合格
编译流程。
第 2 条 附加许可授予
--------------------------------------------------------------------------------
2.1 在所有相关目标代码均由合格编译流程生成的前提下,您获准传播、分发或向公众
提供由受本例外覆盖的运行时库与独立模块组合(包括静态/动态链接、打包嵌入
或内联展开)而成的目标代码整体,即便此类行为在其他情形下会违反 1PL 第 3
条的互惠条款。
2.2 您可以依据您自行选择的任何许可条款(包括专有/闭源商业许可)来传播上述目
标代码组合体,前提是相关条款不违反独立模块自身的许可条件。
第 3 条 不削弱主体互惠义务
--------------------------------------------------------------------------------
3.1 本例外仅豁免通过合格编译流程组合分发目标代码时的互惠传染,不适用于对受保
护编译器本体及运行时库本身源代码的独立修改、衍生与分发——任何对编译器本体
或运行时库本身的修改或单独分发,仍完整受 1PL 条款约束。
3.2 本例外的存在不构成任何削弱 1PL 对其他未明确标注适用本例外的第三方模块或衍
生作品之互惠效力的推定。
================================================================================
1PL RUNTIME LIBRARY EXCEPTION
Version 1.0, November 2026
================================================================================
This 1PL Runtime Library Exception ("Exception") is an Additional Permission
under Article 7 of the One Public License (1PL). It applies to any given file,
runtime library, standard library, header, macro, loader, or platform adapter
(the "Runtime Library") bearing a notice placed by the copyright holder stating
that the file is governed by 1PL along with this Exception.
When You use a 1PL-covered compiler or toolchain to compile a program, the
toolchain may combine, inline, or bundle portions of Runtime Libraries with the
compiled output. The purpose of this Exception is to allow non-1PL (including
proprietary and closed-source commercial) programs to use the covered Runtime
Libraries and generated output, while keeping the compiler and Runtime
Libraries themselves reciprocal copyleft.
Article 1 - Definitions
--------------------------------------------------------------------------------
1.1 A file or module is an "Independent Module" if it either requires the
Runtime Library for execution after a Compilation Process, or makes use of an
interface provided by the Runtime Library, but is not otherwise a Derivative
Work based on the Runtime Library.
1.2 "Covered Compiler" means a compiler, code generator, or toolchain governed by
1PL (or a reciprocal open-source license designated in writing by the
copyright holder), with or without modifications.
1.3 "Compatible Software" means software whose conditions of propagation,
modification, and use permit lawful combination with the Covered Compiler in
accord with 1PL.
1.4 "Target Code" refers to output from a compiler for a real or virtual target
execution environment, including executables, bytecode, target-language
modules (such as ECMAScript/JavaScript modules), WebAssembly modules, or
artifacts suitable for loading or execution. Target Code explicitly excludes
any compiler intermediate representation (IR) or data used for producing a
compiler IR.
1.5 The "Compilation Process" transforms code entirely represented in
non-intermediate languages designed for human-written code (and/or
virtual-machine bytecode) into Target Code. Independent source generators
and preprocessors need not be considered part of the Compilation Process.
1.6 A Compilation Process is "Eligible" if it is done using the Covered
Compiler, alone or with Compatible Software, or if it is done without using
any work based on the Covered Compiler. For example, using non-compatible
or closed-source proprietary plugins to inspect or optimize any intermediate
representations of the Covered Compiler does not qualify as an Eligible
Compilation Process.
Article 2 - Grant of Additional Permission
--------------------------------------------------------------------------------
2.1 You have permission to propagate and distribute a work of Target Code formed
by combining (including static/dynamic linking, bundling, or inlining) the
Runtime Library with Independent Modules, even if such propagation would
otherwise violate Article 3 of 1PL, provided that all Target Code was
generated by Eligible Compilation Processes.
2.2 You may convey such a combination under terms of Your choice (including
proprietary commercial terms), consistent with the licensing of the
Independent Modules.
Article 3 - No Weakening of Copyleft
--------------------------------------------------------------------------------
3.1 This Exception applies solely to combining Target Code generated through an
Eligible Compilation Process. Modifications to, derivations from, and
standalone distributions of the Covered Compiler or the Runtime Library itself
remain fully governed by 1PL.
3.2 The availability of this Exception does not imply any general presumption
that third-party works or modules lacking an explicit notice referencing this
Exception are unaffected by the copyleft requirements of 1PL.
================================================================================
Usage Recommendations:
- Save alongside LICENSE (1PL) as COPYING.RUNTIME in your repository root
- Reference both in runtime/stdlib/header notices:
// Licensed under 1PL WITH Runtime Library Exception
// See: LICENSE and COPYING.RUNTIME (https://license.pub/1pl-runtime-exception/)
================================================================================