Update PIE / PIC dependency.

This commit is contained in:
Christoffer Lerno
2021-06-28 08:35:54 +02:00
parent 84128eb5e9
commit aa786271fb
2 changed files with 7 additions and 2 deletions

View File

@@ -1273,7 +1273,12 @@ void target_setup(BuildTarget *target)
assert(platform_target.pic != PIC_DEFAULT && platform_target.pie != PIE_DEFAULT && "PIC and PIE must have been set.");
reloc_mode = LLVMRelocDefault;
if (platform_target.pic != PIC_NONE || platform_target.pie != PIE_NONE)
if (active_target.type == TARGET_TYPE_EXECUTABLE)
{
platform_target.pic = (PicGeneration)platform_target.pie;
}
if (platform_target.pic != PIC_NONE)
{
reloc_mode = LLVMRelocPIC;
}

View File

@@ -1 +1 @@
#define COMPILER_VERSION "A231"
#define COMPILER_VERSION "A232"