×

Setting a build indicator to enable or disable a feature

  • US 10,585,665 B2
  • Filed: 01/03/2018
  • Issued: 03/10/2020
  • Est. Priority Date: 10/26/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • setting, in a system comprising a processor, a build indicator in a build environment to a set value for building a program code, the set value selected from a first value indicating that a feature of the program code is enabled, and a second value indicating that the feature is disabled;

    in response to the set value of the build indicator being the first value, setting, by the system, a first variable to a value indicating that the feature is enabled;

    in response to the set value of the build indicator being the second value, setting, by the system, the first variable to a value indicating that the feature is disabled;

    building, by the system, the program code using the set value of the first variable;

    in response to the set value of the build indicator being the first value, setting, by the system, a runtime variable to a value indicating that the feature is enabled, wherein the runtime variable being set to the value indicating that the feature is enabled causes a runtime check of the program code to use a portion of the program code that enables the feature; and

    in response to the set value of the build indicator being the second value, setting, by the system, the runtime variable to a different value indicating that the feature is disabled, wherein the runtime variable being set to the different value indicating that the feature is disabled causes the runtime check of the program code to use a different portion of the program code with the feature disabled.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×