| ... | @@ -1288,7 +1288,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1288,7 +1288,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1288 | const sysroot = options.sysroot orelse libc_dirs.sysroot; | 1288 | const sysroot = options.sysroot orelse libc_dirs.sysroot; |
| 1289 | | 1289 | |
| 1290 | const pie: bool = pie: { | 1290 | const pie: bool = pie: { |
| 1291 | if (options.output_mode != .Exe) { | 1291 | if (is_dyn_lib) { |
| 1292 | if (options.want_pie == true) return error.OutputModeForbidsPie; | 1292 | if (options.want_pie == true) return error.OutputModeForbidsPie; |
| 1293 | break :pie false; | 1293 | break :pie false; |
| 1294 | } | 1294 | } |